/*
Theme Name: Light & Shade Artisans
Theme URI: https://lightshade.com.tw
Author: Light & Shade Artisans
Description: 光影織藝軟裝有限公司官方網站佈景主題
Version: 2.0.7
Text Domain: lightshade
*/

/* ===== Design Tokens ===== */
:root {
    --color-bg: #f8f8f6;
    --color-surface: #fff;
    --color-text: #111;
    --color-text-secondary: #666;
    --color-text-muted: #999;
    --color-accent: #B5894E;
    --color-accent-dark: #9A7340;
    --color-accent-light: #D4AE7A;
    --color-border: rgba(0,0,0,0.08);
    --color-border-strong: rgba(0,0,0,0.15);
    --font-sans: 'Noto Sans TC', sans-serif;
    --font-serif: 'Noto Sans TC', sans-serif;
    --font-mono: 'Noto Sans TC', sans-serif;
    --section-gap: clamp(100px, 12vw, 160px);
    --container-max: 1280px;
    --container-padding: clamp(20px, 4vw, 48px);

    /* Legacy compatibility aliases */
    --color-primary: #B5894E;
    --color-primary-dark: #9A7340;
    --color-primary-light: #D4AE7A;
    --color-bg-warm: #f5f0ea;
    --color-white: #fff;
    --font-heading: 'Noto Sans TC', sans-serif;
    --font-body: 'Noto Sans TC', sans-serif;
    --font-en: 'Noto Sans TC', 'Noto Sans TC', sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
}

/* ===== Material Symbols Icons ===== */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga' !important;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Scroll Reveal ===== */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed { opacity: 1; transform: none !important; }
[data-reveal="up"] { transform: translateY(60px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="fade"] { transform: none; }

[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 0.19s; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 0.26s; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 0.33s; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 0.40s; }
[data-reveal-stagger].revealed > *:nth-child(7) { transition-delay: 0.47s; }
[data-reveal-stagger].revealed > *:nth-child(8) { transition-delay: 0.54s; }
[data-reveal-stagger].revealed > * { opacity: 1; transform: none; }

.parallax-img { overflow: hidden; position: relative; }
.parallax-img img { transition: transform 0.1s linear; will-change: transform; }

.text-reveal { overflow: hidden; display: inline-block; }
.text-reveal span { display: inline-block; transform: translateY(100%); transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.text-reveal.revealed span { transform: translateY(0); }

.line-reveal { transform: scaleX(0); transform-origin: left; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.line-reveal.revealed { transform: scaleX(1); }

.section-fade { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.section-fade.revealed { opacity: 1; transform: none; }

.img-reveal { position: relative; overflow: hidden; }
.img-reveal::after { content: ''; position: absolute; inset: 0; background: var(--color-bg); transform-origin: right; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.img-reveal.revealed::after { transform: scaleX(0); }

.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }

/* ===== Watermark / Background Text ===== */
.section-watermark {
    position: relative;
    overflow: hidden;
}
.section-watermark::before {
    content: attr(data-watermark);
    position: absolute;
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-serif);
    font-size: clamp(8rem, 18vw, 22rem);
    font-weight: 700;
    color: rgba(0,0,0,0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    letter-spacing: -0.04em;
    user-select: none;
}
.section-watermark--dark::before {
    color: rgba(255,255,255,0.04);
}
.section-watermark > * {
    position: relative;
    z-index: 1;
}

/* ===== Section Subtitle with Dash ===== */
.section-subtitle-dash {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.section-subtitle-dash::before {
    content: '';
    width: 28px;
    height: 1.5px;
    background: var(--color-accent);
    flex-shrink: 0;
}

/* ===== Counter Animation ===== */
.counter-stat {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.counter-stat.revealed {
    opacity: 1;
    transform: none;
}
.counter-value {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}
.counter-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

/* ===== Card Hover Lift ===== */
.card-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* ===== Accessibility ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    transition: top 0.3s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.4s ease;
}

body.home .site-header:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}

body.home .site-header:not(.scrolled) .site-logo img {
    filter: brightness(0) invert(1);
}

body.home .site-header:not(.scrolled) .main-nav a,
body.home .site-header:not(.scrolled) .main-nav .nav-label {
    color: rgba(255,255,255,0.85);
}

body.home .site-header:not(.scrolled) .main-nav a:hover,
body.home .site-header:not(.scrolled) .main-nav .nav-label:hover {
    color: #fff;
}

body.home .site-header:not(.scrolled) .menu-toggle span {
    background: #fff;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-logo img {
    height: 44px;
    width: auto;
    transition: opacity 0.3s ease;
}
.site-logo:hover img { opacity: 0.7; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a,
.main-nav .nav-dropdown > .nav-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-sans);
    letter-spacing: 0;
}

.main-nav a:hover,
.main-nav .nav-dropdown:hover > .nav-label {
    color: var(--color-text);
    background: rgba(0,0,0,0.04);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-label { cursor: pointer; user-select: none; }

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.nav-dropdown.open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

/* Invisible bridge: keeps :hover active when cursor moves from label to menu */
.nav-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    border-radius: 6px;
}

.dropdown-menu a:hover {
    background: rgba(0,0,0,0.03);
    color: var(--color-text);
}

/* 2-layer submenu (flyout) */
.submenu-item {
    position: relative;
}
.submenu-item > .submenu-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    border-radius: 6px;
}
.submenu-item > .submenu-parent:hover {
    background: rgba(0,0,0,0.03);
    color: var(--color-text);
}
.submenu-item .submenu-arrow {
    flex-shrink: 0;
    opacity: 0.6;
}
.submenu-item .submenu {
    position: absolute;
    top: -6px;
    left: 100%;
    min-width: 240px;
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 6px;
    margin-left: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    z-index: 10;
}
.submenu-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.submenu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    border-radius: 6px;
    white-space: nowrap;
}
.submenu a:hover {
    background: rgba(0,0,0,0.03);
    color: var(--color-text);
}

/* Flooring pages use wider container (2.5× vs default inner) */
.flooring-catalog-hero .container,
.flooring-catalog-section .container,
.series-hero .container,
.pdf-catalog-section .container,
.swatch-section .container {
    max-width: 1280px;
    padding-left: 32px;
    padding-right: 32px;
}
@media (max-width: 768px) {
    .flooring-catalog-hero .container,
    .flooring-catalog-section .container,
    .series-hero .container,
    .pdf-catalog-section .container,
    .swatch-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Flooring catalog grid (reference: mhfloormaterial.com) */
.flooring-catalog-hero {
    background: linear-gradient(135deg, #F5F3EF 0%, #EDE8E0 100%);
    padding: 80px 0 60px;
    text-align: center;
}
.flooring-catalog-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: var(--color-text);
}
.flooring-catalog-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}
.flooring-catalog-section {
    padding: 60px 0 80px;
}
.flooring-catalog-section h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--color-text);
}
.flooring-catalog-section .section-sub {
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    font-size: 0.95rem;
}
.flooring-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
@media (max-width: 1400px) {
    .flooring-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
    .flooring-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .flooring-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.flooring-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.flooring-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border-color: #B5894E;
}
.flooring-card-cover {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #F5F3EF;
}
.flooring-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.flooring-card:hover .flooring-card-cover img {
    transform: scale(1.05);
}
.flooring-card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.flooring-card-brand {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: #B5894E;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
}
.flooring-card-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.4;
}
.flooring-card-tag {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}
.flooring-card-more {
    margin-top: auto;
    font-size: 0.85rem;
    color: #B5894E;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.flooring-card-more::after {
    content: '→';
    transition: transform 0.2s ease;
}
.flooring-card:hover .flooring-card-more::after {
    transform: translateX(4px);
}

/* Series detail page (swatch grid) */
.series-hero {
    padding: 70px 0 40px;
    background: #FAFAF8;
}
.series-hero .container {
    max-width: 1200px;
    padding-left: 32px;
    padding-right: 32px;
}
.series-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.series-hero-cover {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-height: 600px;
    background: #F5F3EF;
}
.series-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
    .series-hero .container { padding-left: 20px; padding-right: 20px; }
}
/* Series banner — full-width image section above hero */
.series-banner {
    width: 100%;
    background: #1B1C1A;
    line-height: 0;
}
.series-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.series-hero-info h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    margin-bottom: 8px;
}
.series-hero-info .series-brand {
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    color: #B5894E;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}
.series-hero-info .series-tag {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}
.series-hero-info .series-desc {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}
.series-hero-info .series-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.series-hero-info .btn-pdf, .series-hero-info .btn-inquiry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.series-hero-info .btn-pdf {
    background: #1B1C1A;
    color: #fff;
}
.series-hero-info .btn-pdf:hover { background: #2A2B29; }
.series-hero-info .btn-inquiry {
    background: transparent;
    color: #1B1C1A;
    border: 1.5px solid #1B1C1A;
}
.series-hero-info .btn-inquiry:hover { background: #1B1C1A; color: #fff; }
@media (max-width: 768px) {
    .series-hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

.swatch-section {
    padding: 60px 0 80px;
}
.swatch-section h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.swatch-section .swatch-sub {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    font-size: 0.92rem;
}
.swatch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 900px) {
    .swatch-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 560px) {
    .swatch-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* PDF Catalog embed */
.pdf-catalog-section {
    padding: 60px 0;
    background: #FAFAF8;
}
.pdf-catalog-section h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.pdf-embed-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 900px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 20px;
}
.pdf-embed-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Flipbook catalog viewer (book mode: 2 pages side by side) */
.flipbook {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 24px auto 0;
    aspect-ratio: 1.414 / 1; /* two A4 pages side by side (2 × 1/√2) */
    background: #1B1C1A;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    user-select: none;
}
.flipbook.is-cover .flipbook-stage { grid-template-columns: 1fr; place-items: center; }
.flipbook.is-cover .flipbook-stage::after { display: none; }
.flipbook.is-cover .flipbook-page.active-right { grid-column: 1; max-width: 50%; }
.flipbook-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 0;
}
.flipbook-stage > br, .flipbook-stage > p:empty { display: none !important; }
.flipbook-stage > p { display: contents; }
.flipbook-stage::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to right, rgba(0,0,0,0.25), rgba(0,0,0,0));
    pointer-events: none;
    z-index: 5;
}
.flipbook-page {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    display: none;
    transition: opacity 0.3s ease;
}
.flipbook-page.active-left { display: block; grid-column: 1; }
.flipbook-page.active-right { display: block; grid-column: 2; }
.flipbook-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #1B1C1A;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.flipbook-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.flipbook-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.flipbook-prev { left: 16px; }
.flipbook-next { right: 16px; }
.flipbook-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
    z-index: 10;
}
@media (max-width: 768px) {
    .flipbook { aspect-ratio: 3 / 4; }
    .flipbook-stage { grid-template-columns: 1fr; }
    .flipbook-stage::after { display: none; }
    .flipbook-page.active-left, .flipbook-page.active-right { grid-column: 1; }
    .flipbook-page.active-right { display: none; }
    .flipbook-nav { width: 40px; height: 40px; font-size: 1.6rem; }
    .flipbook-prev { left: 8px; }
    .flipbook-next { right: 8px; }
}
.pdf-actions {
    margin-top: 20px;
    text-align: center;
}
/* Alsa series cards on main page */
.alsa-series-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 1199px) {
    .alsa-series-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
    .alsa-series-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
    .alsa-series-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .alsa-series-card__body { padding: 16px 14px 18px; }
    .alsa-series-card h3 { font-size: 1.05rem; }
    .alsa-series-card .series-tag { font-size: 0.78rem; line-height: 1.6; }
    .alsa-series-card .series-brand { font-size: 0.62rem; }
    .alsa-series-meta { font-size: 0.7rem; padding: 10px 0; }
    .alsa-series-cta { font-size: 0.82rem; }
}
.alsa-series-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}
.alsa-series-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.alsa-series-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #EDE8E0;
}
.alsa-series-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.alsa-series-card:hover .alsa-series-card__image img {
    transform: scale(1.06);
}
.alsa-series-card__body {
    padding: 24px 24px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.alsa-series-card .series-brand {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #B5894E;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}
.alsa-series-card h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin: 0 0 12px;
    color: #1B1C1A;
    line-height: 1.3;
}
.alsa-series-card .series-tag {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}
.alsa-series-meta {
    font-size: 0.78rem;
    color: #8c8c86;
    padding: 12px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 10px;
}
.alsa-series-cta {
    font-size: 0.9rem;
    color: #B5894E;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Alsa scraped gallery */
.alsa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.alsa-cell {
    margin: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.alsa-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.alsa-cell img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.alsa-cell figcaption { padding: 8px 12px; font-size: 0.78rem; color: var(--color-text-secondary); letter-spacing: 0.02em; word-break: break-all; }
@media (max-width: 560px) {
    .alsa-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.pdf-actions .btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #1B1C1A;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease;
}
.pdf-actions .btn-pdf:hover { background: #2A2B29; }
@media (max-width: 768px) {
    .pdf-embed-wrap { aspect-ratio: 3 / 4; }
}
.swatch-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.swatch-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}
.swatch-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.swatch-item .swatch-code {
    padding: 10px 12px;
    font-size: 0.82rem;
    color: var(--color-text);
    text-align: center;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
    border-top: 1px solid var(--color-border);
}
/* Rectangle variant (3:2) — for scraped product-page swatches (金剛 / 101) */
.swatch-grid--rect .swatch-item img { aspect-ratio: 3 / 2; }
.swatch-grid--rect .swatch-item .swatch-name {
    padding: 8px 12px 10px;
    font-size: 0.82rem;
    color: var(--color-text);
    text-align: center;
    font-family: var(--font-sans);
    border-top: 1px solid var(--color-border);
}
.swatch-grid--rect .swatch-item .swatch-name .en {
    display: block;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.swatch-grid--rect .swatch-item .swatch-name .zh {
    display: block;
    font-size: 0.76rem;
    color: var(--color-text-secondary);
    margin-top: 2px;
}
/* Wide strip variant — for wood / stone catalog swatches sourced from PDF */
.swatch-grid--strips .swatch-item img { aspect-ratio: 5 / 2; }
.swatch-grid--strips .swatch-item .swatch-code {
    padding: 8px 12px 2px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-top: 1px solid var(--color-border);
}
.swatch-grid--strips .swatch-item .swatch-name {
    padding: 0 12px 10px;
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    text-align: center;
    font-family: var(--font-sans);
    line-height: 1.35;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ============================================================
   HERO 3D SHOWCASE — DO NOT MODIFY
   ============================================================ */
.hero-3d {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.hero-3d-room {
  position: absolute;
  inset: -5%;
  z-index: 1;
}

.hero-3d-room-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(0.7);
  transition: transform 8s ease-out;
}

.hero-3d-room-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0,0,0,0.6) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
}

.hero-3d-curtains {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hero-3d-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05) translateZ(-20px);
}
.hero-3d-slide.active {
  opacity: 1;
  transform: scale(1) translateZ(0);
}
.hero-3d-slide.leaving {
  opacity: 0;
  transform: scale(0.95) translateZ(20px);
}

.hero-3d-slide-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) saturate(0.9);
}

.hero-3d-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8%;
}

.hero-3d-text {
  transform-style: preserve-3d;
  max-width: 600px;
}

.hero-3d-en {
  display: block;
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  opacity: 1;
  transform: translateZ(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-3d-title {
  font-family: var(--font-serif);
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.1;
}

.hero-3d-title-main {
  display: block;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  opacity: 1;
  transform: translateZ(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-3d-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 2px;
  margin: 0;
  opacity: 1;
  transform: translateZ(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-3d-desc.fading {
  opacity: 0;
  transform: translateY(0) translateZ(20px);
}

.hero-3d-nav {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 15;
}

.hero-3d-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.hero-3d-arrow:hover {
  border-color: var(--color-accent);
  background: rgba(181,137,78,0.15);
}

.hero-3d-counter {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
}

.hero-3d-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
}

.hero-3d-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  padding: 0;
}
.hero-3d-dot.active {
  width: 32px;
  border-radius: 4px;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.hero-3d-dot-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.hero-3d-dot:hover .hero-3d-dot-label { opacity: 1; }

.hero-3d-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 15;
  color: rgba(255,255,255,0.3);
  font-size: 0.6rem;
  letter-spacing: 3px;
}

.hero-3d-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   END HERO 3D — SAFE TO EDIT BELOW
   ============================================================ */


/* ===== Section Common ===== */
.section {
    padding: var(--section-gap) 0;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 60ch;
    line-height: 1.7;
    text-wrap: pretty;
}

/* Legacy section-header compat */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}
.section-header .en-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--color-text);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.section-divider {
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    margin: 16px auto;
}
.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    text-wrap: pretty;
}


/* ===== Category Cards (Homepage) ===== */
.product-categories {
    padding: var(--section-gap) 0;
    background: var(--color-bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-card {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    color: #fff;
    /* Pedestal: no border-radius, sharp edges */
}

.category-card-image {
    position: absolute;
    inset: 0;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0, 0.25, 1);
}

.category-card:hover .category-card-image img {
    transform: scale(1.02);
}

.category-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
    z-index: 1;
}

.category-card .card-en {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.category-card h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.category-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 40ch;
    text-wrap: pretty;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.category-tags span {
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 2px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.03em;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    margin-top: 16px;
}
.card-arrow svg { width: 16px; height: 16px; }


/* ===== Features / Why Us (Dark) ===== */
.features {
    background: #111;
    padding: var(--section-gap) 0;
}

.features .section-label,
.features .section-header .en-label {
    color: var(--color-text-muted);
}

.features .section-title,
.features .section-header h2 {
    color: #fff;
}

.features .section-desc,
.features .section-header p {
    color: rgba(255,255,255,0.5);
}

.features .section-divider {
    background: var(--color-accent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
}

.feature-item {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    color: var(--color-accent);
}
.feature-icon svg {
    stroke: var(--color-accent);
}

.feature-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    font-family: var(--font-sans);
}

.feature-item p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 40ch;
    text-wrap: pretty;
}

/* Legacy feature-card */
.feature-card {
    text-align: left;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #fff;
}
.feature-card p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}


/* ===== Service Flow (Homepage) ===== */
.service-flow {
    background: var(--color-surface);
    padding: var(--section-gap) 0;
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 24px 0;
}

.flow-steps::before {
    content: '';
    position: absolute;
    top: 56px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--color-border-strong);
}

.flow-step {
    position: relative;
    text-align: center;
    flex: 1;
    padding: 0 12px;
}

.step-number {
    width: auto;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
    line-height: 1;
    transition: color 0.5s ease;
}

.flow-step.is-visible .step-number {
    color: var(--color-accent);
}

.flow-step h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-sans);
}

.flow-step p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* ===== Testimonials ===== */
.testimonials {
    background: #faf9f7;
    padding: var(--section-gap) 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--color-surface);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--color-border-strong);
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 28px;
    font-style: normal;
    text-wrap: pretty;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(181,137,78,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.85rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.88rem;
}

.testimonial-location {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}


/* ===== CTA Section ===== */
.cta-section {
    background: var(--color-bg);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--color-text);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    font-size: 1rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: var(--color-text);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}
.btn-cta:hover {
    background: var(--color-accent);
    color: #fff;
}

.btn-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #06C755;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
}
.btn-line:hover {
    background: #05b34c;
    color: #fff;
    transform: translateY(-1px);
}
.btn-line svg { width: 24px; height: 24px; }


/* ===== Inner Page Hero ===== */
.page-hero {
    position: relative;
    padding: 100px 0 48px;
    background: #111;
    overflow: hidden;
}

.page-hero-sm {
    padding: 76px 0 20px;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 40%, #222 100%);
}
.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(181,137,78,0.06) 0%, transparent 60%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb-dark {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    font-family: var(--font-sans);
}

.breadcrumb-dark a {
    color: rgba(255,255,255,0.5);
    transition: color 0.2s ease;
}
.breadcrumb-dark a:hover {
    color: #fff;
}
.breadcrumb-dark span {
    color: rgba(255,255,255,0.3);
}

.page-hero-en {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.page-hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
}

h1.page-hero-title {
    font-family: var(--font-sans);
}

.page-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
    max-width: 50ch;
    text-wrap: pretty;
}

.page-hero-date {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    margin-top: 12px;
    font-family: var(--font-sans);
}

/* Breadcrumb regular */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-text); }


/* ===== Page Content ===== */
.page-content {
    max-width: 70ch;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
}

.page-content h2 {
    font-size: 1.5rem;
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}

.page-content h3 {
    font-size: 1.2rem;
    margin: 32px 0 12px;
    color: var(--color-text);
}

.page-content p {
    margin-bottom: 16px;
    text-wrap: pretty;
}

.page-content ul, .page-content ol {
    margin: 12px 0 20px 24px;
}
.page-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}
.page-content th,
.page-content td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.page-content th {
    font-weight: 600;
    color: var(--color-text);
    background: rgba(0,0,0,0.02);
}


/* ===== Product Page ===== */
.product-detail {
    padding: 80px 0 40px;
    background: var(--color-surface);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery { position: sticky; top: 100px; }

.product-gallery-main {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--color-bg);
    margin-bottom: 16px;
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-gallery-main:hover img { transform: scale(1.03); }

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.gallery-thumb {
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.5;
}
.gallery-thumb.active, .gallery-thumb:hover {
    border-color: var(--color-text);
    opacity: 1;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.product-subtitle {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.product-desc-lead {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    text-wrap: pretty;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}
.feature-badge:hover {
    border-color: var(--color-border-strong);
    color: var(--color-text);
}
.feature-badge svg {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Spec table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}
.spec-table th, .spec-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}
.spec-table th {
    font-weight: 600;
    width: 160px;
    color: var(--color-text);
}
.spec-table td {
    color: var(--color-text-secondary);
}
.spec-table tr:nth-child(even) td {
    background: rgba(0,0,0,0.015);
}

/* Product tabs */
.product-tabs-section { padding: 60px 0; background: var(--color-bg); }

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
    overflow-x: auto;
}
.tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}
.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-text);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.tab-btn.active { color: var(--color-text); font-weight: 600; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-btn:hover { color: var(--color-text); }

.tab-panel { display: none; animation: fadeInUp 0.4s ease; }
.tab-panel.active { display: block; }

.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.tab-content-grid img { width: 100%; }
.tab-content-text h3 { font-size: 1.3rem; margin-bottom: 16px; }
.tab-content-text p { color: var(--color-text-secondary); margin-bottom: 16px; line-height: 1.8; }
.tab-content-text ul { list-style: none; padding: 0; }
.tab-content-text ul li { padding: 8px 0 8px 24px; position: relative; color: var(--color-text-secondary); }
.tab-content-text ul li::before { content: ''; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; background: var(--color-accent); border-radius: 50%; }

/* Product CTA box */
.product-cta-box {
    padding: 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    margin-bottom: 32px;
}
.product-cta-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-cta-box p { font-size: 0.9rem; color: var(--color-text-secondary); margin-bottom: 16px; }
.product-cta-box .btn-line { width: 100%; justify-content: center; padding: 14px 24px; font-size: 1rem; }

.quick-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.quick-spec-item { padding: 16px; background: var(--color-bg); text-align: center; }
.quick-spec-item .qs-label { font-size: 0.72rem; color: var(--color-text-muted); margin-bottom: 4px; }
.quick-spec-item .qs-value { font-size: 0.95rem; font-weight: 600; }

.install-difficulty { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--color-bg); margin-bottom: 32px; font-size: 0.9rem; }
.install-difficulty .label { font-weight: 600; }
.difficulty-dots { display: flex; gap: 4px; }
.difficulty-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); }
.difficulty-dots .dot.filled { background: var(--color-accent); }

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 1199px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.product-card {
    background: var(--color-surface);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease;
}
.product-card:hover { border-color: var(--color-border-strong); }
.product-card-img { aspect-ratio: 4/3; height: auto; background: var(--color-bg); overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.03); }
.product-card-body { padding: 24px; }
.product-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-card-body p { font-size: 0.9rem; color: var(--color-text-secondary); margin-bottom: 16px; }
@media (max-width: 600px) {
    .product-card-body { padding: 14px 12px 18px; }
    .product-card-body h3 { font-size: 0.98rem; }
    .product-card-body p { font-size: 0.82rem; }
}

/* Addons */
.addons-section { padding: 80px 0; background: var(--color-bg); }
.addons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.addon-card { background: var(--color-surface); border: 1px solid var(--color-border); padding: 32px 28px; transition: border-color 0.3s ease; }
.addon-card:hover { border-color: var(--color-border-strong); }
.addon-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--color-accent); }
.addon-name { font-size: 1.05rem; color: var(--color-text); margin-bottom: 8px; font-weight: 600; }
.addon-desc { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.7; margin: 0; }

/* Advantage cards */
.advantage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0; }
.advantage-card { padding: 24px; background: var(--color-bg); border-left: 3px solid var(--color-accent); transition: all 0.2s ease; }
.advantage-card:hover { background: rgba(0,0,0,0.03); }
.advantage-card h4 { font-size: 1rem; margin-bottom: 8px; font-family: var(--font-sans); }
.advantage-card p { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.6; }


/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    transition: border-color 0.2s ease;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
}

.faq-question .faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--color-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 0 24px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 60ch;
    text-wrap: pretty;
}


/* ===== Knowledge / Blog ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--color-surface);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease;
}
.blog-card:hover { border-color: var(--color-border-strong); }

.blog-card-img {
    height: 220px;
    background: var(--color-bg);
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.03); }

.blog-card-body {
    padding: 24px;
}

.blog-card-body .tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0,0,0,0.04);
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.blog-card-body h2,
.blog-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.4;
}
.blog-card-body h2 a,
.blog-card-body h3 a {
    color: var(--color-text);
}
.blog-card-body h2 a:hover,
.blog-card-body h3 a:hover {
    color: var(--color-accent);
}

.blog-card-body p,
.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    text-wrap: pretty;
}

.blog-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}
.blog-card-link:hover { color: var(--color-accent); }


/* ===== Knowledge Article ===== */
.knowledge-article {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-secondary);
    font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
}

.knowledge-article > *:first-child {
    margin-top: 0;
}

.knowledge-article .article-intro {
    font-size: 1.12rem;
    line-height: 1.9;
    color: var(--color-text);
    margin: 0 0 48px;
    padding: 28px 32px;
    background: var(--color-bg-warm, #f5f0ea);
    border-left: 3px solid var(--color-accent);
    letter-spacing: 0.01em;
}

.knowledge-article h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 64px 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-accent);
    line-height: 1.4;
}

.knowledge-article h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    color: var(--color-text);
    font-weight: 600;
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--color-accent);
    line-height: 1.45;
}

.knowledge-article p {
    margin: 0 0 20px;
    text-wrap: pretty;
    color: var(--color-text-secondary);
}

.knowledge-article strong {
    color: var(--color-accent-dark);
    font-weight: 600;
}

.knowledge-article a {
    color: var(--color-accent-dark);
    text-decoration: underline;
    text-decoration-color: rgba(181, 137, 78, 0.45);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.knowledge-article a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

.knowledge-article ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0 28px;
}
.knowledge-article ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.85;
}
.knowledge-article ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 10px;
    height: 2px;
    background: var(--color-accent);
}
.knowledge-article ol {
    padding-left: 1.4em;
    margin: 20px 0 28px;
}
.knowledge-article ol li {
    padding-left: 8px;
    margin-bottom: 12px;
    line-height: 1.85;
}
.knowledge-article ul ul,
.knowledge-article ul ol,
.knowledge-article ol ul,
.knowledge-article ol ol {
    margin: 8px 0 8px;
}

.knowledge-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.knowledge-article th, .knowledge-article td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}
.knowledge-article th {
    background: var(--color-bg-warm, #f5f0ea);
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 2px solid var(--color-accent);
}
.knowledge-article tbody tr:last-child th,
.knowledge-article tbody tr:last-child td {
    border-bottom: none;
}

.knowledge-article blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 18px 28px;
    margin: 28px 0;
    background: var(--color-bg-warm, #f5f0ea);
    font-style: normal;
    color: var(--color-text-secondary);
}

/* RWD — Tablet */
@media (max-width: 900px) {
    .knowledge-article {
        font-size: 1rem;
        line-height: 1.85;
    }
    .knowledge-article .article-intro {
        font-size: 1.02rem;
        padding: 22px 22px;
        margin-bottom: 36px;
    }
    .knowledge-article h2 {
        margin: 48px 0 16px;
        padding-bottom: 12px;
    }
    .knowledge-article h3 {
        margin: 32px 0 12px;
    }
}

/* RWD — Mobile */
@media (max-width: 600px) {
    .knowledge-article {
        font-size: 0.98rem;
        line-height: 1.82;
    }
    .knowledge-article .article-intro {
        font-size: 0.98rem;
        padding: 20px 18px;
        margin-bottom: 32px;
    }
    .knowledge-article h2 {
        margin: 40px 0 14px;
        padding-bottom: 10px;
    }
    .knowledge-article h3 {
        margin: 28px 0 10px;
        padding-left: 12px;
    }
    .knowledge-article ul li {
        padding-left: 20px;
    }
    .knowledge-article p {
        margin-bottom: 16px;
    }

    /* Table — horizontal scroll */
    .knowledge-article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 0.9rem;
    }
    .knowledge-article th,
    .knowledge-article td {
        padding: 12px 14px;
        white-space: normal;
        min-width: 120px;
    }
    .knowledge-article blockquote {
        padding: 16px 20px;
        margin: 24px 0;
    }
}


/* ===== Footer ===== */
/* ===== Curtain Reveal Effect ===== */
.stitch-homepage > main > section,
.stitch-homepage > main > div {
    position: sticky !important;
    top: 0 !important;
}
/* Extra scroll space: each section stays longer before next covers it */
.stitch-homepage > main > section {
    padding-bottom: 45vh !important;
}
/* Hero (first section) — do not add padding-bottom so content is truly vertically centered in viewport */
.stitch-homepage > main > :nth-child(1) {
    padding-bottom: 0 !important;
}
/* Increasing z-index: later sections slide up over earlier ones */
.stitch-homepage > main > :nth-child(1) { z-index: 1 !important; }
.stitch-homepage > main > :nth-child(2) { z-index: 2 !important; box-shadow: 0 -20px 60px rgba(0,0,0,0.12); }
.stitch-homepage > main > :nth-child(3) { z-index: 3 !important; box-shadow: 0 -20px 60px rgba(0,0,0,0.12); }
.stitch-homepage > main > :nth-child(4) { z-index: 4 !important; box-shadow: 0 -20px 60px rgba(0,0,0,0.12); }
.stitch-homepage > main > :nth-child(5) { z-index: 5 !important; box-shadow: 0 -20px 60px rgba(0,0,0,0.12); }
.stitch-homepage > main > :nth-child(6) { z-index: 6 !important; box-shadow: 0 -20px 60px rgba(0,0,0,0.12); }
.stitch-homepage > main > :nth-child(7) { z-index: 7 !important; box-shadow: 0 -20px 60px rgba(0,0,0,0.12); }
.stitch-homepage > main > :nth-child(8) { z-index: 8 !important; box-shadow: 0 -20px 60px rgba(0,0,0,0.12); }

/* Base footer styles */
.site-footer {
    background: #111;
    color: rgba(255,255,255,0.45);
    padding: 36px 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
}
/* Fixed footer - revealed as last curtain lifts */
body.home .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
}
/* Content sits above the fixed footer */
body.home > main {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
}
body.home > .cta-section,
body.home > .sf-cta-section {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
}

/* Brand row (full width, above 4-col grid) */
.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.footer-brand-row img {
    filter: brightness(0) invert(1);
    opacity: 0.6;
    height: 32px;
    width: auto;
}
.footer-brand-row p {
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
    margin: 0;
}

/* 4 equal columns below the brand row */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Kept for back-compat if any page still uses .footer-brand */
.footer-brand img {
    filter: brightness(0) invert(1);
    opacity: 0.6;
    margin-bottom: 20px;
    height: 40px;
    width: auto;
}
.footer-brand p {
    color: rgba(255,255,255,0.35);
    font-size: 0.85rem;
    line-height: 1.8;
}

.site-footer h4 {
    color: rgba(255,255,255,0.7);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    font-family: var(--font-mono);
    font-weight: 400;
}

.site-footer a {
    color: rgba(255,255,255,0.4);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}
.site-footer a:hover { color: rgba(255,255,255,0.8); }

.footer-col a {
    display: block;
    padding: 1px 0;
    line-height: 1.7;
}
/* 窗飾館 has 9 items — display as 2 sub-columns inside its cell so it doesn't tower */
.footer-col--window .footer-col__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
}

.footer-line-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    margin-top: 16px;
    transition: all 0.2s ease;
}
.footer-line-icon:hover {
    border-color: #06C755;
    background: rgba(6,199,85,0.1);
}
.footer-line-icon svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.5); }

.footer-social {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-social a:hover {
    border-color: #06C755;
    background: rgba(6,199,85,0.08);
    color: rgba(255,255,255,0.85);
}
.footer-social svg { color: rgba(255,255,255,0.55); }
.footer-social a:hover svg { color: #06C755; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0 0;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}


/* ===== LINE Floating Button ===== */
.line-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #06C755;
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(6,199,85,0.25);
    transition: all 0.3s ease;
}
.line-float:hover {
    background: #05b34c;
    color: white;
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(6,199,85,0.35);
}
.line-float svg { width: 24px; height: 24px; }
.line-float .float-text,
.line-float span { display: none; }


/* ===== Sticky Bottom CTA ===== */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    padding: 12px 0;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.sticky-cta-info { display: flex; align-items: center; gap: 16px; }
.sticky-cta-info img { width: 48px; height: 48px; object-fit: cover; }
.sticky-cta-info .sticky-title { font-weight: 600; font-size: 0.95rem; }
.sticky-cta-info .sticky-sub { font-size: 0.8rem; color: var(--color-text-secondary); }
.sticky-cta .btn-line { padding: 10px 28px; font-size: 0.9rem; white-space: nowrap; }


/* ===== Studio Wizard ===== */
.studio { position: fixed; inset: 0; background: #f8f8f6; z-index: 9999; display: flex; flex-direction: column; overflow: hidden; }
.studio-header { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 56px; background: #fff; border-bottom: 1px solid var(--color-border); flex-shrink: 0; z-index: 10; }
.studio-back { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--color-text); transition: background 0.2s ease; }
.studio-back:hover { background: rgba(0,0,0,0.04); }
.studio-logo { display: flex; align-items: center; gap: 8px; }
.studio-logo img { width: 24px; height: 24px; }
.studio-logo span { font-family: var(--font-serif); font-size: 0.9rem; color: var(--color-text); letter-spacing: 2px; }
.studio-step-indicator { display: flex; align-items: center; gap: 8px; }
.studio-step-current { font-family: var(--font-mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 3px; color: var(--color-text-muted); }
.studio-step-num { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; color: var(--color-text); }
.studio-step { display: none; flex: 1; min-height: 0; }
.studio-step.active { display: grid; grid-template-columns: 1fr 420px; animation: studioFadeIn 0.5s ease forwards; }
@keyframes studioFadeIn { from { opacity: 0; } to { opacity: 1; } }
.studio-visual { position: relative; background: #111; overflow: hidden; }
.studio-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1); }
.studio-hero-img.active { opacity: 1; }
.studio-visual-overlay { position: absolute; inset: 0; background: linear-gradient(to right, transparent 60%, rgba(248,248,246,0.05) 100%); pointer-events: none; }
.studio-visual-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.studio-panel { display: flex; flex-direction: column; padding: 48px 40px; overflow-y: auto; background: #fff; }
.studio-question { font-family: var(--font-serif); font-size: 1.6rem; color: var(--color-text); margin-bottom: 8px; }
.studio-hint { font-size: 0.9rem; color: var(--color-text-secondary); margin-bottom: 32px; }
.studio-options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.studio-options-grid .studio-option { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 12px; border: 1px solid var(--color-border-strong); border-radius: 8px; background: #fff; cursor: pointer; transition: all 0.2s ease; text-align: center; }
.studio-options-grid .studio-option:hover { border-color: var(--color-accent); }
.studio-options-grid .studio-option.selected { border-color: var(--color-accent); background: var(--color-accent); color: #fff; }
.studio-options-grid .studio-option.selected .studio-opt-en { color: rgba(255,255,255,0.7); }
.studio-opt-name { font-size: 1rem; font-weight: 600; color: inherit; }
.studio-opt-en { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-text-muted); margin-top: 4px; }
.studio-options-list { display: flex; flex-direction: column; gap: 10px; }
.studio-options-list .studio-option { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--color-border-strong); border-radius: 8px; background: #fff; cursor: pointer; transition: all 0.2s ease; text-align: left; width: 100%; }
.studio-options-list .studio-option:hover { border-color: var(--color-accent); }
.studio-options-list .studio-option.selected { border-color: var(--color-accent); background: rgba(181,137,78,0.06); }
.studio-options-list .studio-option svg { flex-shrink: 0; color: var(--color-accent); }
.studio-opt-desc { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 2px; }
.studio-summary-panel { justify-content: center; }
.studio-summary { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.studio-summary-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.summary-label { font-size: 0.85rem; color: var(--color-text-muted); }
.summary-value { font-size: 0.95rem; font-weight: 600; color: var(--color-text); }
.studio-summary-note { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 32px; text-align: center; }
.studio-cta-line { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 32px; background: #06C755; color: #fff; font-size: 1.05rem; font-weight: 700; border-radius: 0; border: none; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.studio-cta-line:hover { background: #05b34c; color: #fff; transform: translateY(-1px); }
.studio-nav { display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: #fff; border-top: 1px solid var(--color-border); flex-shrink: 0; }
.studio-nav-prev, .studio-nav-next { display: flex; align-items: center; gap: 6px; padding: 12px 24px; border: 1px solid var(--color-border-strong); background: #fff; cursor: pointer; font-size: 0.9rem; font-weight: 500; color: var(--color-text); transition: all 0.2s ease; font-family: var(--font-sans); }
.studio-nav-prev:hover:not(:disabled), .studio-nav-next:hover:not(:disabled) { border-color: var(--color-text); }
.studio-nav-prev:disabled, .studio-nav-next:disabled { opacity: 0.3; cursor: not-allowed; }
.studio-nav-next { margin-left: auto; background: var(--color-text); color: #fff; border-color: var(--color-text); }
.studio-nav-next:hover:not(:disabled) { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.studio-progress { flex: 1; height: 2px; background: var(--color-border); overflow: hidden; }
.studio-progress-fill { height: 100%; background: var(--color-accent); transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* Related Products */
.related-products { padding: 80px 0; background: var(--color-surface); }
.related-products .section-header { margin-bottom: 40px; }


/* ===== Responsive: 1024px ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .product-layout { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { position: static; }
    .tab-content-grid { grid-template-columns: 1fr; }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

    /* Service flow page policy callout */
    .sf-policy-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
    .header-inner { height: 64px; }
    .site-logo img { height: 36px; }

    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-surface);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    .main-nav.active { transform: translateX(0); }

    .main-nav a,
    .main-nav .nav-dropdown > .nav-label {
        font-size: 1.05rem;
        padding: 14px 16px;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 16px;
    }

    .dropdown-menu a {
        padding: 10px 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .menu-toggle { display: block; min-width: 44px; min-height: 44px; }

    .category-grid { grid-template-columns: 1fr; gap: 8px; }
    .category-card { aspect-ratio: 16/9; }
    .category-card-content { padding: 24px; }
    .category-card h3 { font-size: 1.8rem; }

    .features-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature-item { padding: 0 4px; }

    .flow-steps {
        flex-direction: column;
        gap: 32px;
        padding: 0;
    }
    .flow-steps::before {
        top: 0; bottom: 0; left: 24px; width: 1px; height: 100%;
        right: auto;
    }
    .flow-step {
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 20px;
        padding: 0;
    }
    .step-number {
        font-size: 2rem;
        flex-shrink: 0;
        margin: 0;
        width: auto;
    }

    .testimonial-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 28px 24px; }
    .testimonial-text { font-size: 0.95rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .footer-col a { padding: 8px 0; min-height: 44px; display: flex; align-items: center; }

    .blog-grid { grid-template-columns: 1fr; }
    .quick-specs { grid-template-columns: 1fr 1fr; }

    .page-hero { padding: 72px 0 20px; }
    .page-hero-sm { padding: 68px 0 16px; }
    .page-hero-title { font-size: clamp(1.4rem, 5vw, 2rem); }
    .page-hero-sub { font-size: 0.9rem; }

    /* Spec table — scrollable on mobile */
    .spec-table,
    .pp-content .spec-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .spec-table th,
    .spec-table td {
        white-space: normal;
        min-width: 100px;
    }

    /* Post navigation in single.php */
    .single-post-nav {
        flex-direction: column;
        gap: 12px;
    }

    /* Hero 3D mobile */
    .hero-3d-content { padding: 0 6%; justify-content: flex-end; padding-bottom: 160px; }
    .hero-3d-title-main { font-size: clamp(2.5rem, 12vw, 4rem); }
    .hero-3d-nav { right: 4%; flex-direction: row; top: auto; bottom: 140px; transform: none; }
    .hero-3d-arrow { width: 40px; height: 40px; }
    .hero-3d-dots { bottom: 80px; }

    .line-float .float-text { display: none; }
    .line-float { width: 44px; height: 44px; bottom: 20px; right: 20px; }

    .sticky-cta-info img { display: none; }
    .sticky-cta-inner { gap: 12px; }

    .studio-step.active { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
    .studio-panel { padding: 24px 20px; }
    .studio-question { font-size: 1.3rem; }
    .studio-options-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .studio-options-grid .studio-option { padding: 14px 8px; }
    .studio-opt-name { font-size: 0.9rem; }

    .addons-grid { grid-template-columns: 1fr; gap: 12px; padding: 0 var(--container-padding); }
    .addon-card { padding: 24px 20px; }

    /* Service flow page */
    .sf-policy-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* FAQ page */
    .faq-question {
        padding: 20px 4px;
        font-size: 0.95rem;
    }
    .faq-answer-inner {
        padding: 0 0 20px;
        max-width: 100%;
    }

    /* Knowledge base */
    .blog-card-body { padding: 20px; }

    /* CTA section */
    .cta-section { padding: 60px 0; }

    /* section-header spacing */
    .section-header { margin-bottom: 40px; }
}


/* ===== Responsive: 480px ===== */
@media (max-width: 480px) {
    .section { padding: 64px 0; }

    /* Hero 3D small mobile */
    .hero-3d-title-main { font-size: 2.5rem; }
    .hero-3d-desc { display: none; }

    .page-hero-title { font-size: 1.4rem; }
    .page-hero-sub { font-size: 0.85rem; }

    /* Category cards */
    .category-card { aspect-ratio: 4/3; }
    .category-card-content { padding: 20px; }
    .category-card h3 { font-size: 1.5rem; }
    .category-tags span { font-size: 0.68rem; padding: 3px 8px; }

    /* Features */
    .features-grid { gap: 24px; }

    /* Service flow steps */
    .flow-step { gap: 14px; }
    .step-number { font-size: 1.8rem; }
    .flow-step h4 { font-size: 0.95rem; }

    /* Testimonials */
    .testimonial-card { padding: 24px 16px; }
    .testimonial-text { font-size: 0.9rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-brand { grid-column: auto; }

    /* FAQ */
    .faq-question { font-size: 0.9rem; padding: 16px 0; }

    /* Blog grid cards */
    .blog-card-img { height: 180px; }
    .blog-card-img img { height: 180px; }

    /* Product spec table */
    .spec-table th { width: 100px; font-size: 0.85rem; }
    .spec-table td { font-size: 0.85rem; }

    /* Buttons */
    .btn-cta,
    .btn-line {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    /* Quick specs */
    .quick-specs { grid-template-columns: 1fr 1fr; }

    /* Service flow policy callout text */
    .sf-policy-grid { gap: 24px !important; }

    .studio-step.active { grid-template-rows: 30vh 1fr; }
    .studio-logo span { display: none; }
    .studio-options-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .studio-options-grid .studio-option { padding: 10px 4px; }
    .studio-opt-en { display: none; }

    /* sticky CTA */
    .sticky-cta-info .sticky-title { font-size: 0.88rem; }
    .sticky-cta-info .sticky-sub { font-size: 0.75rem; }
    .sticky-cta .btn-line { padding: 8px 18px; font-size: 0.85rem; }
}


/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-on-scroll { opacity: 1; transform: none; }
    [data-reveal], [data-reveal-stagger] > *, .section-fade, .text-reveal span, .line-reveal, .img-reveal::after { opacity: 1; transform: none; }
}

/* ===== Print ===== */
@media print {
    .site-header, .site-footer, .line-float, .cta-section, .sticky-cta { display: none; }
    body { color: #000; background: #fff; }
    .container { max-width: 100%; padding: 0; }
}

/* =============================================================================
   PRODUCT PAGE REDESIGN — Stripe / Linear inspired
   Premium, utility-first, canvas-grid aesthetic
   ============================================================================= */

/* ---- Hero ---- */
.pp-hero {
    position: relative;
    min-height: 280px;
    max-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1a1714;
}
.pp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0.45;
    will-change: auto;
    transform: translateZ(0);
}
.pp-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 15, 10, 0.95) 0%,
        rgba(18, 15, 10, 0.6) 40%,
        rgba(18, 15, 10, 0.25) 100%
    );
}
/* Canvas grid lines — decorative */
.pp-hero__grid,
.pp-cta__grid {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 var(--container-padding);
    max-width: var(--container-max);
    margin: 0 auto;
    left: 0; right: 0;
}
.pp-hero__grid span,
.pp-cta__grid span {
    display: block;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.06);
}
.pp-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    padding-bottom: 40px;
}

/* Breadcrumb */
.pp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.pp-breadcrumb a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s ease;
    text-decoration: none;
}
.pp-breadcrumb a:hover { color: var(--color-accent-light); }
.pp-breadcrumb svg { opacity: 0.4; flex-shrink: 0; }
.pp-breadcrumb span[aria-current] { color: rgba(255,255,255,0.85); }

/* Hero title */
.pp-hero__title {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
    max-width: 48ch;
}

/* ---- Product content wrapper ---- */
.pp-content {
    background: var(--color-bg);
    position: relative;
}
.pp-content__wrap {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* ---- Override existing product-detail inside the new wrapper ---- */
.pp-content .product-detail {
    /* Remove the old container nesting since we already have one */
}
.pp-content .product-detail > .container {
    max-width: 100%;
    padding: 0;
}
.pp-content .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* Product gallery — elevated card */
.pp-content .product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}
.pp-content .product-gallery-main {
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.06),
        0 8px 40px rgba(0,0,0,0.08);
}
.pp-content .product-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: auto;
}
.pp-content .product-gallery-main:hover img {
    transform: scale(1.03);
}

/* Product info — right column */
.pp-content .product-info {
    padding-top: 8px;
}
.pp-content .product-info .breadcrumb {
    display: none; /* breadcrumb now in hero */
}
.pp-content .product-info h1 {
    font-family: var(--font-sans);
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-wrap: balance;
    margin-bottom: 8px;
}
.pp-content .product-subtitle {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 550;
    margin-bottom: 20px;
}
.pp-content .product-desc-lead {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    max-width: 65ch;
    margin-bottom: 28px;
    text-wrap: pretty;
}

/* Feature badges — pill style */
.pp-content .feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.pp-content .feature-badges br { display: none; }
.pp-content .feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 550;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 100px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.pp-content .feature-badge:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-dark);
    box-shadow: 0 0 0 3px rgba(181, 137, 78, 0.08);
}

/* Install difficulty */
.pp-content .install-difficulty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.88rem;
}
.pp-content .install-difficulty .label {
    font-weight: 600;
    color: var(--color-text);
}
.pp-content .install-difficulty p { margin: 0; }
.pp-content .difficulty-dots {
    display: flex;
    gap: 5px;
}
.pp-content .difficulty-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
}
.pp-content .difficulty-dots .dot.filled {
    background: var(--color-accent);
}

/* Quick specs — grid cards */
.pp-content .quick-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 32px;
}
.pp-content .quick-spec-item {
    padding: 18px 16px;
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.2s ease;
}
.pp-content .quick-spec-item:hover {
    border-color: rgba(0,0,0,0.12);
}
.pp-content .quick-spec-item .qs-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.pp-content .quick-spec-item .qs-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
}

/* ---- Tabs Section ---- */
.pp-content .product-tabs-section {
    padding: 64px 0 0;
    background: transparent;
}
.pp-content .product-tabs-section > .container {
    max-width: 100%;
    padding: 0;
}
.pp-content .tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pp-content .tab-nav::-webkit-scrollbar { display: none; }
.pp-content .tab-nav br { display: none; }
.pp-content .tab-btn {
    position: relative;
    padding: 14px 24px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
}
.pp-content .tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 1px;
}
.pp-content .tab-btn.active {
    color: var(--color-text);
    font-weight: 600;
}
.pp-content .tab-btn.active::after { transform: scaleX(1); }
.pp-content .tab-btn:hover { color: var(--color-text); }

/* Tab panels */
.pp-content .tab-panel {
    display: none;
    animation: ppFadeUp 0.4s ease;
}
.pp-content .tab-panel.active { display: block; }

@keyframes ppFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spec table — zebra with rounded wrapper */
.pp-content .spec-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
    font-size: 0.92rem;
}
.pp-content .spec-table th,
.pp-content .spec-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.pp-content .spec-table th {
    font-weight: 600;
    color: var(--color-text);
    width: 160px;
    background: rgba(0,0,0,0.015);
    white-space: nowrap;
}
.pp-content .spec-table td {
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.pp-content .spec-table tr:nth-child(even) td {
    background: rgba(0,0,0,0.012);
}
.pp-content .spec-table tr:last-child th,
.pp-content .spec-table tr:last-child td {
    border-bottom: none;
}

/* Advantage / feature cards */
.pp-content .advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 0;
}
.pp-content .advantage-card {
    padding: 28px 24px;
    background: var(--color-surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    border-left: none;
    position: relative;
    transition: all 0.25s ease;
}
.pp-content .advantage-card::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 0;
    width: 3px;
    height: 24px;
    background: var(--color-accent);
    border-radius: 0 2px 2px 0;
}
.pp-content .advantage-card:hover {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.pp-content .advantage-card h4 {
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 10px;
    color: var(--color-text);
    font-family: var(--font-sans);
}
.pp-content .advantage-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    max-width: 60ch;
    margin: 0;
}

/* Tab text content — install instructions etc */
.pp-content .tab-content-text {
    max-width: 72ch;
}
.pp-content .tab-content-text h3 {
    font-size: 1.15rem;
    font-weight: 650;
    margin-bottom: 14px;
    margin-top: 32px;
    color: var(--color-text);
}
.pp-content .tab-content-text h3:first-child { margin-top: 0; }
.pp-content .tab-content-text p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.85;
    font-size: 0.95rem;
    text-wrap: pretty;
}
.pp-content .tab-content-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}
.pp-content .tab-content-text ul li {
    position: relative;
    padding: 10px 0 10px 28px;
    color: var(--color-text-secondary);
    line-height: 1.75;
    font-size: 0.92rem;
}
.pp-content .tab-content-text ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 18px;
    width: 7px;
    height: 7px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* FAQ accordion — refined */
.pp-content .faq-list {
    max-width: 72ch;
}
.pp-content .faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.pp-content .faq-item:first-child {
    border-top: 1px solid rgba(0,0,0,0.06);
}
.pp-content .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    font-size: 0.98rem;
    font-weight: 550;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
    line-height: 1.5;
    transition: color 0.2s ease;
    gap: 16px;
}
.pp-content .faq-question:hover { color: var(--color-accent-dark); }
.pp-content .faq-question .faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    transition: all 0.25s ease;
    font-weight: 400;
}
.pp-content .faq-item.active .faq-toggle {
    background: var(--color-accent);
    color: #fff;
    transform: rotate(45deg);
    border-radius: 50%;
}
.pp-content .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.pp-content .faq-item.active .faq-answer {
    max-height: 400px;
}
.pp-content .faq-answer-inner {
    padding: 0 0 24px;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.85;
    max-width: 65ch;
}

/* ---- Addons section ---- */
.pp-content .addons-section,
.pp-content + .addons-section,
.addons-section {
    padding: 72px 0;
    background: var(--color-surface);
}
.pp-content .addons-section .section-header,
.addons-section .section-header {
    text-align: center;
    margin-bottom: 48px;
}
.pp-content .addons-grid,
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}
.addon-card {
    background: var(--color-bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    padding: 32px 28px;
    transition: all 0.25s ease;
}
.addon-card:hover {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

/* ---- CTA Section ---- */
.pp-cta {
    position: relative;
    padding: 96px 0;
    background: linear-gradient(135deg, #1a1714 0%, #2c2519 50%, #1a1714 100%);
    overflow: hidden;
}
.pp-cta__grid span {
    background: rgba(255,255,255,0.04);
}
.pp-cta__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.pp-cta__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 12px;
    font-weight: 550;
}
.pp-cta__heading {
    font-family: var(--font-sans);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.pp-cta__desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
    margin-bottom: 36px;
    text-wrap: pretty;
}
.pp-cta__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.pp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.pp-btn svg { flex-shrink: 0; }
.pp-btn--primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 12px rgba(181, 137, 78, 0.3);
}
.pp-btn--primary:hover {
    background: var(--color-accent-dark);
    box-shadow: 0 4px 20px rgba(181, 137, 78, 0.4);
    transform: translateY(-1px);
    color: #fff;
}
.pp-btn--outline {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.15);
}
.pp-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

/* ---- Related Products ---- */
.pp-related {
    padding: 80px 0;
    background: var(--color-surface);
    overflow: hidden;
}
.pp-related__header {
    margin-bottom: 40px;
}
.pp-related__eyebrow {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
    font-weight: 550;
}
.pp-related__title {
    font-family: var(--font-sans);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* Horizontal scroll cards */
.pp-related__scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    margin: 0 calc(var(--container-padding) * -1);
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
.pp-related__scroll::-webkit-scrollbar { display: none; }

.pp-related__card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--color-bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}
.pp-related__card:hover {
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}
.pp-related__card-img {
    height: 200px;
    overflow: hidden;
}
.pp-related__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pp-related__card:hover .pp-related__card-img img {
    transform: scale(1.06);
}
.pp-related__card-body {
    padding: 20px 22px;
}
.pp-related__card-body h3 {
    font-size: 1rem;
    font-weight: 650;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.3;
}
.pp-related__card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 550;
    color: var(--color-accent);
    transition: gap 0.2s ease;
}
.pp-related__card:hover .pp-related__card-link {
    gap: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .pp-content .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .pp-hero {
        min-height: 320px;
    }
    .pp-hero__inner {
        padding-top: 110px;
        padding-bottom: 40px;
    }
    .pp-hero__grid,
    .pp-cta__grid {
        display: none; /* hide grid lines on mobile */
    }
    .pp-content__wrap {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .pp-content .product-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pp-content .product-gallery {
        position: static;
    }
    .pp-content .product-gallery-main {
        border-radius: 12px;
    }
    .pp-content .spec-table {
        border-radius: 12px;
    }
    .pp-content .spec-table th,
    .pp-content .spec-table td {
        padding: 12px 16px;
        font-size: 0.88rem;
    }
    .pp-content .spec-table th {
        width: 120px;
    }
    .pp-content .advantage-grid {
        grid-template-columns: 1fr;
    }
    .pp-content .tab-btn {
        padding: 12px 18px;
        font-size: 0.88rem;
    }
    .pp-content .quick-specs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pp-cta {
        padding: 64px 0;
    }
    .pp-cta__desc br { display: none; }

    .pp-related {
        padding: 56px 0;
    }
    .pp-related__card {
        flex: 0 0 240px;
    }
    .pp-related__card-img {
        height: 160px;
    }

    .pp-btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pp-hero__title {
        font-size: 1.5rem;
    }
    .pp-content .product-info h1 {
        font-size: 1.25rem;
    }
    .pp-content .quick-specs {
        grid-template-columns: 1fr;
    }
    .pp-content .install-difficulty {
        flex-wrap: wrap;
        gap: 8px;
    }
    .pp-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .pp-btn {
        justify-content: center;
    }
}

/* ---- Fix: Related products card sizing ---- */
.pp-related__scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.pp-related__card {
    flex: 0 0 300px !important;
    min-width: 280px;
    max-width: 320px;
    scroll-snap-align: start;
    background: var(--color-bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}
.pp-related__card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.pp-related__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pp-related__card:hover .pp-related__card-img img {
    transform: scale(1.06);
}

/* ---- Fix: CTA visibility on white bg ---- */
.pp-cta__grid {
    max-width: var(--container-max);
}

/* ---- Fix: tabs section full-width below product layout ---- */
.pp-content .product-tabs-section {
    grid-column: 1 / -1;
}

/* ---- Fix: product-desc-lead blockquote style removal ---- */
.pp-content .product-desc-lead {
    border-left: none;
    padding-left: 0;
}

/* ---- Fix: addons section card border-radius ---- */
.addons-section .addon-card {
    border-radius: 14px;
}
.addons-section .addon-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(181, 137, 78, 0.08);
    border-radius: 10px;
    margin-bottom: 20px;
    color: var(--color-accent);
}


/* ===== Single Post Navigation ===== */
.single-post-nav {
    max-width: 70ch;
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.single-post-nav__link {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
    flex: 1 1 auto;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.single-post-nav__link:hover { color: var(--color-text); }
.single-post-nav__link:last-child { text-align: right; justify-content: flex-end; }

@media (max-width: 480px) {
    .single-post-nav {
        flex-direction: column;
        gap: 8px;
        margin-top: 48px;
    }
    .single-post-nav__link:last-child {
        text-align: left;
        justify-content: flex-start;
    }
}


/* ===== Global: ensure no horizontal overflow ===== */
.container,
.section,
article,
section {
    max-width: 100%;
}

/* Prevent overflow-x from inline grids in service flow */
.sf-policy-section .container { overflow: hidden; }

/* Table scroll wrappers */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== General tap target minimum for all interactive elements ===== */
@media (max-width: 768px) {
    button,
    [role="button"],
    input[type="submit"],
    input[type="button"],
    .btn-cta,
    .btn-line,
    .pp-btn,
    .tab-btn {
        min-height: 44px;
    }
}

/* ===== Alsa Structure (4-Layer) ===== */
.series-structure {
    padding: 64px 0 32px;
    background: #fff;
}
.series-structure__inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.series-structure__subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: #8A8278;
    margin: 0 0 8px;
}
.series-structure__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1B1C1A;
    margin: 0 0 8px;
}
.series-structure__desc {
    color: #666;
    margin: 0 0 32px;
    font-size: 1rem;
}
.series-structure__img {
    width: 100%;
    max-width: 780px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* ===== Alsa Features & Certifications ===== */
.series-features {
    padding: 64px 0;
    background: #FAF8F5;
}
.series-features__title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1B1C1A;
    margin: 0 0 8px;
    letter-spacing: 0.05em;
}
.series-features__subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: #8A8278;
    margin: 0 0 48px;
    letter-spacing: 0.1em;
}
.series-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 64px;
}
.feature-item {
    text-align: center;
}
.feature-item__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: #B5894E;
}
.feature-item__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1B1C1A;
    margin: 0 0 8px;
}
.feature-item__desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
.series-certs {
    padding: 48px 0 64px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.series-certs__title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1B1C1A;
    margin: 0 0 8px;
}
.series-certs__subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #8A8278;
    margin: 0 0 40px;
}
.series-certs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 20px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}
@media (max-width: 640px) {
    .series-certs__grid { grid-template-columns: repeat(2, 1fr); }
}
.cert-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.cert-item img {
    height: 76px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.cert-item__label {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}
@media (max-width: 640px) {
    .series-features { padding: 48px 0; }
    .series-features__grid { gap: 24px; }
    .cert-item img { height: 60px; }
}
/* Text-only cert badge variant — for products without official cert logos */
.cert-item--text .cert-item__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    min-width: 130px;
    max-width: 100%;
    padding: 0 14px;
    border: 2px solid #785600;
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-sans, 'Noto Sans TC', sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: #785600;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.2;
    box-sizing: border-box;
}
@media (max-width: 640px) {
    .cert-item--text .cert-item__badge { height: 60px; min-width: 110px; font-size: 0.85rem; }
}

/* ===== About Page Redesign ===== */
.about-hero {
    position: relative;
    min-height: 78vh;
    background: #0F1010;
    background-image:
        radial-gradient(ellipse at 30% 40%, rgba(181,137,78,0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(212,181,117,0.08) 0%, transparent 60%),
        linear-gradient(180deg, #151614 0%, #0F1010 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}
.about-hero__overlay {
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 80px);
    pointer-events: none;
}
.about-hero__inner {
    position: relative;
    max-width: 900px;
    text-align: center;
    color: #fff;
}
.about-hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.45em;
    color: #D4B575;
    margin: 0 0 32px;
    text-transform: uppercase;
    font-weight: 500;
}
.about-hero__title {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.35;
    margin: 0 0 36px;
    color: #fff;
}
.about-hero__lede {
    font-size: 1.05rem;
    line-height: 2.1;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.06em;
    margin: 0 auto;
    max-width: 640px;
    font-weight: 300;
}
.about-hero__scroll {
    position: absolute;
    bottom: 40px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    writing-mode: vertical-rl;
}

/* Reusable small labels */
.section-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: #B5894E;
    font-weight: 600;
    margin: 0 0 14px;
}
.section-title {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 500;
    color: #1B1C1A;
    line-height: 1.5;
    margin: 0 0 24px;
    letter-spacing: 0.04em;
}
.about-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.about-section-head__sub {
    color: #666;
    line-height: 1.9;
    font-size: 1rem;
    margin: 0;
}

/* Story */
.about-story { padding: 120px 0 100px; background: #FAF8F5; }
.about-story__grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
}
.about-story__visual {
    aspect-ratio: 4/5;
    background: linear-gradient(150deg, #1F1C18 0%, #3A2E22 50%, #1F1C18 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 60px 40px;
    color: #fff;
    overflow: hidden;
}
.about-story__visual::before {
    content: '';
    position: absolute; inset: 16px;
    border: 1px solid rgba(212,181,117,0.25);
    pointer-events: none;
}
.about-story__visual::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(212,181,117,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.about-story__mark img {
    height: 56px; width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.88;
}
.about-story__tag {
    display: flex; align-items: center; gap: 14px;
    color: #D4B575;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
}
.about-story__tag .line { width: 36px; height: 1px; background: rgba(212,181,117,0.45); }
.about-story__quote {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: 1.15rem;
    line-height: 2.1;
    color: rgba(255,255,255,0.82);
    text-align: center;
    letter-spacing: 0.1em;
    margin: 0;
    font-style: italic;
    position: relative;
    z-index: 1;
}
.about-story__body p {
    color: #444;
    line-height: 2.1;
    font-size: 0.98rem;
    margin: 0 0 20px;
    letter-spacing: 0.03em;
}
.about-story__body p:last-child { margin-bottom: 0; }
.about-story__signature {
    display: flex; align-items: center; gap: 14px;
    margin-top: 36px;
    color: #B5894E;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    font-weight: 600;
}
.about-story__signature .line { width: 48px; height: 1px; background: #B5894E; }

/* Values */
.about-values { padding: 120px 0; background: #fff; }
.about-values__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 2.5vw, 32px);
}
.value-card {
    padding: 48px 36px;
    background: #FAF8F5;
    border-top: 2px solid #B5894E;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(27,28,26,0.08);
}
.value-card__num {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: 2.6rem;
    color: #D4B575;
    margin-bottom: 24px;
    font-weight: 400;
    font-style: italic;
}
.value-card__title {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: 1.25rem;
    margin: 0 0 18px;
    color: #1B1C1A;
    letter-spacing: 0.05em;
    line-height: 1.5;
    font-weight: 500;
}
.value-card__title span {
    font-size: 0.95rem;
    color: #666;
    letter-spacing: 0.12em;
    font-weight: 400;
}
.value-card__desc {
    color: #555;
    font-size: 0.92rem;
    line-height: 2;
    margin: 0;
}

/* Stats */
.about-stats {
    padding: 80px 0;
    background: #1B1C1A;
    color: #fff;
}
.about-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat-item {
    text-align: center;
    padding: 24px 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    color: #D4B575;
    margin: 0 0 10px;
    font-weight: 400;
    letter-spacing: 0.02em;
}
.stat-item__num span { font-size: 0.5em; color: #B5894E; margin-left: 4px; }
.stat-item__label {
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* Expertise */
.about-expertise { padding: 120px 0; background: #FAF8F5; }
.about-expertise__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 40px);
}
.expertise-block {
    background: #fff;
    padding: 56px 44px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}
.expertise-block:hover {
    border-color: #B5894E;
    transform: translateY(-4px);
}
.expertise-block__num {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    color: #B5894E;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 600;
}
.expertise-block h3 {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: 1.6rem;
    margin: 0 0 28px;
    color: #1B1C1A;
    font-weight: 500;
    letter-spacing: 0.05em;
}
.expertise-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.expertise-block ul li {
    padding: 12px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    color: #444;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}
.expertise-block ul li:last-child { border-bottom: none; }
.expertise-block__link {
    display: inline-block;
    color: #B5894E;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.08em;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}
.expertise-block__link:hover { border-bottom-color: #B5894E; }

/* Promise — cream theme, unified with home-page .lsa-social-proof */
.about-promise,
.lsa-social-proof {
    padding: 120px 0;
    background: #faf8f3;
    color: #30312e;
    border-top: 1px solid rgba(120,86,0,0.1);
    border-bottom: 1px solid rgba(120,86,0,0.1);
}
.lsa-social-proof { padding: 80px 0; }
.about-promise__inner,
.lsa-sp-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}
.about-promise__title,
.lsa-sp-title {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #30312e;
    font-weight: 400;
    margin: 0 0 56px;
    letter-spacing: 0.08em;
    line-height: 1.6;
}
.about-promise__grid,
.lsa-sp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(120,86,0,0.15);
    border: 1px solid rgba(120,86,0,0.15);
}
.about-promise__grid > div,
.lsa-sp-grid .lsa-sp-item {
    background: #faf8f3;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.about-promise__grid strong,
.lsa-sp-grid strong {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: 1.05rem;
    color: #785600;
    font-weight: 500;
    letter-spacing: 0.08em;
}
.about-promise__grid span,
.lsa-sp-grid span {
    font-size: 0.82rem;
    color: #4f4535;
    letter-spacing: 0.04em;
    line-height: 1.7;
    text-align: center;
}
@media (max-width: 720px) {
    .about-promise, .lsa-social-proof { padding: 80px 0; }
    .about-promise__grid, .lsa-sp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* CTA */
.about-cta {
    padding: 120px 0;
    background: #FAF8F5;
    text-align: center;
}
.about-cta h2 {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    color: #1B1C1A;
    margin: 0 0 40px;
    letter-spacing: 0.06em;
    line-height: 1.7;
}
.about-cta__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.about-cta .btn-primary,
.about-cta .btn-outline {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}
.about-cta .btn-primary {
    background: #1B1C1A;
    color: #fff;
}
.about-cta .btn-primary:hover { background: #B5894E; }
.about-cta .btn-outline {
    background: transparent;
    color: #1B1C1A;
    border: 1px solid #1B1C1A;
}
.about-cta .btn-outline:hover { background: #1B1C1A; color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
    .about-story__grid { grid-template-columns: 1fr; gap: 56px; max-width: 720px; margin: 0 auto; }
    .about-story__visual { aspect-ratio: 16/10; max-width: 560px; margin: 0 auto; width: 100%; }
    .about-expertise__grid { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
}
@media (max-width: 860px) {
    .about-values__grid { grid-template-columns: repeat(2, 1fr); }
    .about-values__grid .value-card:last-child { grid-column: 1 / -1; }
    .about-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .about-promise__grid, .lsa-sp-grid { grid-template-columns: repeat(2, 1fr); }
    .about-hero { min-height: 60vh; padding: 100px 20px 60px; }
    .about-values, .about-expertise, .about-promise, .about-cta, .about-story, .lsa-social-proof { padding: 80px 0; }
}
@media (max-width: 560px) {
    .about-values__grid { grid-template-columns: 1fr; }
    .about-values__grid .value-card:last-child { grid-column: auto; }
    .about-promise__grid, .lsa-sp-grid { grid-template-columns: 1fr; }
    .value-card { padding: 36px 28px; }
    .expertise-block { padding: 40px 28px; }
}
/* Hero with bg image */
.about-hero--bg { background-size: cover; background-position: center; }

/* Story visual photo variant */
.about-story__visual--photo {
    background-size: cover;
    background-position: center;
    padding: 0;
    justify-content: flex-end;
    align-items: stretch;
}
.about-story__visual--photo .about-story__visual-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,16,16,0) 40%, rgba(15,16,16,0.82) 100%);
}
.about-story__visual--photo .about-story__visual-content {
    position: relative;
    padding: 48px 40px;
    display: flex; flex-direction: column; gap: 20px;
    align-items: center; text-align: center;
}
.about-story__visual--photo .about-story__quote {
    font-size: 1.05rem;
    line-height: 2;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Gallery */
.about-gallery {
    padding: 120px 0;
    background: #fff;
}
.about-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 260px 260px;
    gap: 16px;
}
.gallery-item {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.5s ease;
}
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.7) 100%);
    transition: opacity 0.4s;
}
.gallery-item figcaption { display: none; }
.gallery-item::after { display: none; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-link {
    display: block;
    text-decoration: none;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.5s ease;
}
.gallery-link:hover { transform: scale(1.02); }
.gallery-link.gallery-item--tall { grid-row: span 2; }
.gallery-link.gallery-item--wide { grid-column: span 2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.about-gallery__cta { text-align: center; margin-top: 48px; }
.gallery-view-all {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid #1B1C1A;
    color: #1B1C1A;
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    font-weight: 500;
    transition: all 0.3s;
}
.gallery-view-all:hover { background: #1B1C1A; color: #fff; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

/* Expertise with cover photo */
.expertise-block { padding: 0 !important; overflow: hidden; }
.expertise-block__cover {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.expertise-block:hover .expertise-block__cover { transform: scale(1.04); }
.expertise-block__body { padding: 40px 44px 48px; }

@media (max-width: 860px) {
    .about-gallery { padding: 80px 0; }
    .about-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 12px;
    }
    .gallery-item { aspect-ratio: 4/3; }
    .gallery-item--tall, .gallery-item--wide { grid-row: auto; grid-column: auto; }
}
@media (max-width: 560px) {
    .expertise-block__body { padding: 32px 24px 40px; }
}

/* Portfolio page */
.portfolio-hero {
    padding: 140px 0 60px;
    background: #FAF8F5;
    text-align: center;
}
.portfolio-hero__title {
    font-family: var(--font-serif, 'Noto Sans TC', sans-serif);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: #1B1C1A;
    margin: 16px 0 20px;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.portfolio-hero__sub {
    color: #666;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    line-height: 1.9;
    margin: 0;
}
.portfolio-hero__date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #817563;
    letter-spacing: 0.08em;
    margin-top: 16px;
}
.portfolio-filter {
    padding: 32px 0 16px;
    background: #FAF8F5;
    position: sticky; top: 0;
    z-index: 5;
}
.portfolio-filter__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.pf-tab {
    background: transparent;
    border: 1px solid rgba(27,28,26,0.15);
    color: #555;
    padding: 10px 22px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}
.pf-tab:hover { border-color: #B5894E; color: #B5894E; }
.pf-tab.is-active {
    background: #1B1C1A;
    color: #fff;
    border-color: #1B1C1A;
}
.portfolio-grid-section { padding: 48px 0 120px; background: #FAF8F5; }
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.portfolio-item {
    position: relative;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin: 0;
    cursor: pointer;
    transition: transform 0.4s;
}
.portfolio-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.72) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.portfolio-item:hover::after { opacity: 1; }
.portfolio-item:hover { transform: translateY(-4px); }
.portfolio-item figcaption {
    position: absolute;
    left: 20px; right: 20px; bottom: 18px;
    color: #fff;
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s;
}
.portfolio-item:hover figcaption { opacity: 1; transform: translateY(0); }
.portfolio-item__cat {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: #D4B575;
    margin-bottom: 4px;
}
.portfolio-item__title {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}
@media (max-width: 860px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 520px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .pf-tab { padding: 8px 16px; font-size: 0.82rem; }
}

/* Hide default breadcrumb hero + global CTA on pages with their own hero */
body.page-id-368 .cta-section,
body.page-id-12 .cta-section,
body.page-id-3 .cta-section { display: none; }
/* Hide default breadcrumb hero on pages with their own about-hero */
body.page-id-368 .pp-hero,
body.page-id-3 .pp-hero { display: none; }

/* ============ PRIVACY POLICY PAGE ============ */
.privacy-content {
    padding: 96px 0 120px;
    background: #FAF8F5;
}
.privacy-body {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
    color: #3a3a38;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.9;
}
.privacy-body p {
    margin: 0 0 18px;
    font-size: 1rem;
    color: #4a4a48;
}
.privacy-intro {
    font-size: 1.08rem !important;
    color: #2a2a28 !important;
    line-height: 2 !important;
    padding: 28px 32px;
    background: #fff;
    border-left: 3px solid #B5894E;
    margin-bottom: 24px !important;
}
.privacy-intro strong {
    color: #B5894E;
    letter-spacing: 0.02em;
}
.privacy-updated {
    font-size: 0.88rem !important;
    color: #8a8a88 !important;
    text-align: right;
    letter-spacing: 0.1em;
    margin-bottom: 48px !important;
}
.privacy-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4B575, transparent);
    margin: 48px 0;
}
.privacy-section-title {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin: 56px 0 20px;
    font-size: 1.45rem;
    font-weight: 600;
    color: #1B1C1A;
    letter-spacing: 0.02em;
    line-height: 1.4;
}
.privacy-section-title:first-of-type {
    margin-top: 0;
}
.privacy-num {
    font-family: "Noto Sans TC", sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #B5894E;
    letter-spacing: 0.15em;
    padding: 6px 12px;
    border: 1px solid #D4B575;
    border-radius: 2px;
    flex-shrink: 0;
}
.privacy-body h2 + p {
    margin-top: 8px;
}
.privacy-body p strong {
    display: inline-block;
    color: #1B1C1A;
    margin-top: 12px;
    font-weight: 600;
}
.privacy-list {
    margin: 8px 0 24px;
    padding: 0 0 0 22px;
    list-style: none;
}
.privacy-list li {
    position: relative;
    padding: 6px 0 6px 18px;
    font-size: 0.98rem;
    color: #4a4a48;
    line-height: 1.8;
}
.privacy-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 6px;
    height: 6px;
    background: #B5894E;
    border-radius: 50%;
}
.privacy-contact {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
    padding: 32px;
    background: #fff;
    border: 1px solid rgba(181, 137, 78, 0.2);
    border-radius: 4px;
}
.privacy-contact > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.privacy-contact strong {
    font-size: 0.82rem;
    color: #B5894E;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}
.privacy-contact span {
    font-size: 1rem;
    color: #1B1C1A;
    font-weight: 500;
}
.privacy-contact a {
    color: #1B1C1A;
    text-decoration: none;
    border-bottom: 1px solid #B5894E;
    transition: color 0.2s;
}
.privacy-contact a:hover {
    color: #B5894E;
}
@media (max-width: 720px) {
    .privacy-content { padding: 64px 0 80px; }
    .privacy-body { padding: 0 20px; }
    .privacy-section-title { font-size: 1.2rem; gap: 12px; margin: 40px 0 16px; }
    .privacy-intro { padding: 20px 24px; font-size: 1rem !important; }
    .privacy-contact { grid-template-columns: 1fr; padding: 24px; }
}

/* ========================================================================
   Swatch Lightbox — click any swatch image to see full-size in modal
   ======================================================================== */
.swatch-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.swatch-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}
.swatch-lightbox .sl-figure {
    margin: 0;
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.swatch-lightbox .sl-image {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: block;
}
.swatch-lightbox .sl-caption {
    color: #f4f4f4;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.95rem;
    text-align: center;
    letter-spacing: 0.03em;
    max-width: 92vw;
    padding: 0 20px;
}
.swatch-lightbox .sl-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.swatch-lightbox .sl-close:hover {
    background: rgba(255,255,255,0.25);
}
.swatch-lightbox .sl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.swatch-lightbox .sl-nav:hover {
    background: rgba(255,255,255,0.25);
}
.swatch-lightbox .sl-prev { left: 24px; }
.swatch-lightbox .sl-next { right: 24px; }
@media (max-width: 640px) {
    .swatch-lightbox .sl-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
    .swatch-lightbox .sl-nav { width: 40px; height: 40px; font-size: 24px; }
    .swatch-lightbox .sl-prev { left: 8px; }
    .swatch-lightbox .sl-next { right: 8px; }
    .swatch-lightbox .sl-caption { font-size: 0.85rem; }
}
