/* ==========================================
   數位名片 - 馬卡龍扁平設計 v3
   零漸層、純色、溫暖陰影
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

:root {
    /* 馬卡龍色板 */
    --macaron-rose:       #F4B5C1;
    --macaron-peach:      #F8C9A0;
    --macaron-lemon:      #F9E4A7;
    --macaron-mint:       #A8D8C8;
    --macaron-lavender:   #C5B9E8;
    --macaron-blueberry:  #A5C4E3;
    --macaron-pistachio:  #B8D8A8;
    --macaron-vanilla:    #FFF5E6;

    /* 品牌色（可被 JS 覆蓋） */
    --primary-color: #667eea;
    --primary-rgb: 102, 126, 234;
    --primary-text-color: #111827;
    --secondary-color: #764ba2;
    --secondary-rgb: 118, 75, 162;

    /* 文字 */
    --text-color: #2D2D3A;
    --text-light: #5A5A6E;
    --text-muted: #9E9EB0;

    /* 背景 */
    --bg-color: #F5F3F0;
    --card-bg: #ffffff;
    --border-color: #ECEAE6;

    /* 溫暖陰影 */
    --shadow-sm: 0 1px 3px rgba(45,45,58,0.06);
    --shadow-md: 0 4px 12px rgba(45,45,58,0.06);
    --shadow-lg: 0 8px 24px rgba(45,45,58,0.06);

    /* 圓角 */
    --radius-pill: 9999px;
    --radius-card: 16px;
    --radius-sm: 12px;

    /* 字型 */
    --font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border: 2px solid var(--bg-color);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    filter: brightness(.92);
}

/* Preserve vertical page scrolling while blocking pinch and double-tap zoom. */
html, body {
    touch-action: pan-y;
    overscroll-behavior-y: none;
}

body {
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================
   Free-plan platform advertisement carousel
   ========================================== */
.free-card-ad-footer {
    background: #fff;
    border-top: 1px solid rgba(45,45,58,.06);
    padding: 0 16px 16px;
}
.free-card-ad {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    /* The ad is the image itself; do not add a larger frame around transparent artwork. */
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.free-card-ad-slide { display: none; width: fit-content; max-width: 100%; margin: 0 auto; color: inherit; text-decoration: none; }
.free-card-ad-slide.is-active { display: block; }
.free-card-ad-slide img {
    display: block;
    width: 250px;
    height: 83px;
    max-width: 100%;
    max-height: 83px;
    object-fit: contain;
    object-position: center;
    background: transparent;
}
.free-card-ad-copy {
    display: block;
    padding: 12px 16px 14px;
    background: #fff;
    text-align: left;
}
.free-card-ad-copy strong { display: block; color: #172033; font-size: 15px; }
.free-card-ad-copy small { display: block; margin-top: 3px; color: #64748b; font-size: 13px; line-height: 1.5; }
.free-card-ad-nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border: 0;
    border-radius: 50%;
    background: rgba(15,23,42,.66);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.free-card-ad-prev { left: 10px; }
.free-card-ad-next { right: 10px; }
.free-card-ad-dots { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 6px; }
.free-card-ad-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.48); cursor: pointer; }
.free-card-ad-dots button.is-active { width: 20px; border-radius: 8px; background: #fff; }
@media (max-width: 480px) {
    .free-card-ad-footer { padding: 0 12px 12px; }
    .free-card-ad { width: fit-content; max-width: 100%; }
    .free-card-ad-slide { width: fit-content; max-width: 100%; }
    .free-card-ad-slide img { width: 250px; height: 83px; max-height: 83px; }
    .free-card-ad-nav { width: 32px; height: 32px; margin-top: -16px; font-size: 21px; }
}

/* ==========================================
   Loading Screen
   ========================================== */
.loading-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s var(--transition-smooth);
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--macaron-mint);
    animation: dotBounce 1.4s infinite;
}

.loading-dots span:nth-child(2) {
    background: var(--macaron-peach);
    animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
    background: var(--macaron-lavender);
    animation-delay: 0.3s;
}

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.loading-screen p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================
   Scroll Animations
   ========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Card Container
   ========================================== */
.card-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--card-bg);
    position: relative;
}

.has-custom-primary .card-container {
    background: var(--primary-color);
}

@media (min-width: 481px) {
    body {
        background: var(--bg-color);
    }
    .card-container {
        margin-top: 24px;
        margin-bottom: 24px;
        border-radius: var(--radius-card);
        overflow: hidden;
        min-height: auto;
        box-shadow: var(--shadow-lg);
    }
}

.card-container { overflow: visible; }

/* Native desktop card: 720px wide. Mobile remains 480px; is-wide expands to 1024px. */
@media (min-width: 761px) {
    .card-container {
        max-width: 720px;
        font-size: 16px;
    }
    .card-container:not(.is-wide) .hero-cover { height: 230px; }
    .card-container:not(.is-wide) .hero-content { padding: 0 36px; }
    .card-container:not(.is-wide) .avatar-wrapper { width: 108px; height: 108px; }
    .card-container:not(.is-wide) .merchant-name { font-size: 34px; letter-spacing: -0.2px; }
    .card-container:not(.is-wide) .merchant-subtitle { font-size: 16px; max-width: 520px; }
    .card-container:not(.is-wide) .merchant-tag { font-size: 13px; padding: 5px 15px; }
    .card-container:not(.is-wide) .card-section { padding: 28px 36px; }
    .card-container:not(.is-wide) .card-section + .card-section { padding-top: 10px; }
    .card-container:not(.is-wide) .section-title { font-size: 19px; }
    .card-container:not(.is-wide) .about-content .description { font-size: 16.5px; line-height: 1.85; }
    .card-container:not(.is-wide) .announcement-banner { padding: 14px 36px; font-size: 14px; }
    .card-container:not(.is-wide) .cta-section { padding: 0 36px 28px; }
    .card-container:not(.is-wide) .cta-buttons { flex-direction: row; flex-wrap: wrap; }
    .card-container:not(.is-wide) .cta-btn { flex: 1 1 220px; font-size: 16px; padding: 15px 22px; }
    .card-container:not(.is-wide) .business-hours { padding: 0; margin-bottom: 8px; }
    .card-container:not(.is-wide) .business-hours-title { font-size: 16px; }
    .card-container:not(.is-wide) .business-hours-toggle { min-height: 52px; padding: 15px 18px; font-size: 15.5px; }
    .card-container:not(.is-wide) .business-hours-panel .hours-grid { padding: 0 18px 18px; }
    .card-container:not(.is-wide) .hours-grid { grid-template-columns: 60px 1fr; gap: 8px 18px; font-size: 15px; }
    .card-container:not(.is-wide) .card-section-before-booking { padding-bottom: 0; }
    .card-container:not(.is-wide) .card-section-before-booking .business-hours { margin-bottom: 8px; }
    .card-container:not(.is-wide) .info-value { font-size: 16px; }
    .card-container:not(.is-wide) .services-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 14px !important; }
    .card-container:not(.is-wide) .service-card { padding: 18px; }
    .card-container:not(.is-wide) .service-img,
    .card-container:not(.is-wide) .service-img-placeholder { width: 96px; height: 96px; }
    .card-container:not(.is-wide) .service-name { font-size: 16px; }
    .card-container:not(.is-wide) .service-desc { font-size: 14px; }
    .card-container:not(.is-wide) .service-price { font-size: 17px; }
    .card-container:not(.is-wide) .faq-question,
    .card-container:not(.is-wide) .faq-answer { font-size: 15px; }
    .card-container:not(.is-wide) .social-grid { gap: 18px; }
    .card-container:not(.is-wide) .social-item { width: 70px; }
    .card-container:not(.is-wide) .social-icon-circle { width: 56px; height: 56px; }
    .card-container:not(.is-wide) .social-label { font-size: 12px; }
    .card-container:not(.is-wide) .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .card-container:not(.is-wide) .product-info { padding: 12px; }
    .card-container:not(.is-wide) .product-name { font-size: 16px; }
    .card-container:not(.is-wide) .product-desc { font-size: 13px; }
    .card-container:not(.is-wide) .product-price { font-size: 17px; }
    .card-container:not(.is-wide) .product-add-btn { font-size: 14px; padding: 9px 0; }
}

body.card-desktop-mode .announcement-modal { max-width: min(720px, calc(100vw - 40px)); }
body.card-desktop-mode .card-articles-modal { max-width: min(720px, calc(100vw - 40px)); }
body.card-desktop-mode .card-articles-title { font-size: 26px; }
body.card-desktop-mode .card-articles-text { font-size: 16px; line-height: 1.45; }
body.card-desktop-mode .card-inline-video-box { max-width: min(650px, calc(85vw - 40px)) !important; }
body.card-desktop-mode .services-modal { width: min(100%, 720px); }
body.card-desktop-mode .booking-modal { width: min(100%, 780px); height: min(90vh, 840px); height: min(90dvh, 840px); }
body.card-desktop-mode .cart-panel,
body.card-desktop-mode .checkout-panel { max-width: 480px; }
body.card-desktop-mode .lightbox-img { max-width: min(90vw, 900px); }

/* Wide preview: same card, tablet/desktop-sized canvas. */
.card-container.is-wide {
    max-width: 1024px;
    font-size: 17px;
    overflow: visible;
}

.card-container.is-wide .hero-cover { height: 260px; }
.card-container.is-wide .hero-content { padding: 0 48px; }
.card-container.is-wide .avatar-wrapper { width: 112px; height: 112px; }
.card-container.is-wide .merchant-name { font-size: 40px; letter-spacing: -0.3px; }
.card-container.is-wide .merchant-subtitle { font-size: 17px; max-width: 620px; }
.card-container.is-wide .merchant-tag { font-size: 14px; padding: 6px 16px; }
.card-container.is-wide .card-section { padding: 34px 48px; }
.card-container.is-wide .card-section + .card-section { padding-top: 12px; }
.card-container.is-wide .section-title { font-size: 20px; }
.card-container.is-wide .about-content .description { font-size: 17px; line-height: 1.85; }
.card-container.is-wide .announcement-banner { padding: 15px 48px; font-size: 15px; }
.card-container.is-wide .cta-section { padding: 0 48px 34px; }
.card-container.is-wide .cta-buttons { flex-direction: row; flex-wrap: wrap; }
.card-container.is-wide .cta-btn { flex: 1 1 180px; font-size: 17px; padding: 16px 24px; }
.card-container.is-wide .business-hours { padding: 0; margin-bottom: 10px; }
.card-container.is-wide .business-hours-title { font-size: 17px; }
.card-container.is-wide .business-hours-toggle { min-height: 54px; padding: 16px 20px; font-size: 17px; }
.card-container.is-wide .business-hours-panel .hours-grid { padding: 0 20px 20px; }
.card-container.is-wide .hours-grid { grid-template-columns: 68px 1fr; gap: 8px 20px; font-size: 15.5px; }
.card-container.is-wide .card-section-before-booking { padding-bottom: 0; }
.card-container.is-wide .card-section-before-booking .business-hours { margin-bottom: 0; }
.card-container.is-wide .info-row { padding: 18px 0; }
.card-container.is-wide .info-icon { width: 44px; height: 44px; font-size: 19px; }
.card-container.is-wide .info-label { font-size: 13px; }
.card-container.is-wide .info-value { font-size: 17px; }
.card-container.is-wide .services-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px !important; }
.card-container.is-wide .service-card { padding: 20px; }
.card-container.is-wide .service-img,
.card-container.is-wide .service-img-placeholder { width: 104px; height: 104px; }
.card-container.is-wide .service-name { font-size: 17px; }
.card-container.is-wide .service-desc { font-size: 15px; }
.card-container.is-wide .service-price { font-size: 18px; }
.card-container.is-wide .faq-question,
.card-container.is-wide .faq-answer { font-size: 16px; }
.card-container.is-wide .social-grid { gap: 24px; }
.card-container.is-wide .social-item { width: 78px; }
.card-container.is-wide .social-icon-circle { width: 62px; height: 62px; }
.card-container.is-wide .social-label { font-size: 13px; }
.card-container.is-wide .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-container.is-wide .product-info { padding: 14px; }
.card-container.is-wide .product-name { font-size: 17px; }
.card-container.is-wide .product-desc { font-size: 14px; }
.card-container.is-wide .product-price { font-size: 18px; }
.card-container.is-wide .product-add-btn { padding: 11px 0; font-size: 15px; }

.card-size-control {
    position: fixed;
    top: 50%;
    right: 10px;
    z-index: 1200;
    transform: translateY(-50%);
    pointer-events: none;
}

.card-size-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #94A3B8;
    box-shadow: 0 6px 18px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.95);
    font-family: var(--font-family);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.18s var(--transition-smooth), border-color 0.18s var(--transition-smooth), color 0.18s var(--transition-smooth), background 0.18s var(--transition-smooth);
}

.card-size-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff;
}

.card-size-toggle:active { transform: scale(0.96); }
.card-size-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
.card-size-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.card-size-toggle .card-size-icon-collapse,
.card-size-toggle[aria-pressed="true"] .card-size-icon-expand { display: none; }
.card-size-toggle[aria-pressed="true"] .card-size-icon-collapse { display: block; }
.card-container.is-wide .card-size-toggle {
    color: var(--primary-color);
    border-color: rgba(var(--primary-rgb), 0.35);
    background: #fff;
}

body.card-wide-mode .announcement-modal {
    max-width: min(920px, calc(100vw - 48px));
    max-height: 88vh;
}
body.card-wide-mode .card-articles-modal {
    max-width: min(920px, calc(100vw - 48px));
}
body.card-wide-mode .card-articles-content { padding: 30px 40px 36px; }
body.card-wide-mode .card-articles-title { font-size: 30px; }
body.card-wide-mode .card-articles-text { font-size: 17px; line-height: 1.45; }
body.card-wide-mode .card-articles-media img { max-height: 420px; }
body.card-wide-mode .card-inline-video-box { max-width: min(840px, calc(85vw - 48px)) !important; }
body.card-wide-mode .services-modal { width: min(100%, 920px); }
body.card-wide-mode .services-modal-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.card-wide-mode .cart-panel,
body.card-wide-mode .checkout-panel { max-width: 560px; }
body.card-wide-mode .booking-modal { width: min(100%, 980px); height: min(92vh, 920px); height: min(92dvh, 920px); }
body.card-wide-mode .email-subscription-modal { width: min(100%, 720px); }
body.card-wide-mode .lightbox-img { max-height: 88vh; max-width: min(94vw, 1200px); }
body.card-wide-mode .lightbox-prev { left: max(24px, calc(50% - 620px)); }
body.card-wide-mode .lightbox-next { right: max(24px, calc(50% - 620px)); }

@media (max-width: 760px) {
    .card-section-before-booking { padding-bottom: 6px; }
    .card-section-before-booking .business-hours { margin-bottom: 8px; }
    .business-hours + .booking-cta-btn { margin-top: 0; }
    .business-hours-toggle { min-height: 50px; padding: 14px 16px; }
    .booking-cta-btn { margin-top: 0; }
    .card-size-control { display: none; }
    .card-container.is-wide .card-section,
    .card-container.is-wide .hero-content,
    .card-container.is-wide .cta-section,
    .card-container.is-wide .announcement-banner { padding-left: 24px; padding-right: 24px; }
    .card-container.is-wide .services-grid,
    .card-container.is-wide .products-grid { grid-template-columns: 1fr; }
    .card-container.is-wide .cta-buttons { flex-direction: column; }
    .card-container.is-wide .cta-btn { flex-basis: auto; }
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
    position: relative;
    text-align: center;
    padding-bottom: 24px;
    overflow: hidden;
    background: var(--card-bg);
}

.has-custom-primary .hero-section {
    background: var(--primary-color);
}

.hero-cover {
    height: 200px;
    background-color: var(--macaron-vanilla);
    background-size: cover;
    background-position: center;
    position: relative;
}

.has-custom-primary .hero-cover {
    background-color: var(--primary-color);
}


/* 圓弧底部切割 */
.hero-cover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: -5%;
    width: 110%;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50% 50% 0 0;
}

.has-custom-primary .hero-cover::after {
    background: var(--primary-color);
}

.hero-content {
    margin-top: -52px;
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.hero-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.avatar-wrapper {
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    flex-shrink: 0;
    border-radius: 9999px;
    border: 0;
    overflow: hidden;
    margin: 0 auto;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.hero-primary .avatar-wrapper {
    flex: 0 0 96px;
    margin: 0;
}

.hero-digu {
    flex: 0 1 auto;
    width: max-content;
    min-width: 0;
    max-width: calc(100% - 108px);
    padding: 9px 11px;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 12px;
    background: rgba(255,255,255,.42);
    box-shadow: 0 6px 18px rgba(15,23,42,.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    text-align: left;
}

.hero-digu-text {
    margin: 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow-wrap: anywhere;
}

@media (max-width: 460px) {
    .hero-digu-text {
        white-space: normal;
    }
}

.avatar-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: inherit;
    object-fit: cover;
    transform: none;
}

.avatar-wrapper video.avatar-img {
    pointer-events: none;
}


.avatar-wrapper.avatar-fallback .avatar-img {
    display: none;
}

.avatar-fallback-text {
    font-size: 36px;
    font-weight: 900;
    color: white;
    display: none;
}

.avatar-wrapper.avatar-fallback .avatar-fallback-text {
    display: block;
}

.merchant-name {
    font-size: 28px;
    font-weight: 900;
    margin-top: 16px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.has-custom-primary .merchant-name {
    color: var(--primary-text-color);
}

.merchant-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.has-custom-primary .merchant-subtitle {
    color: var(--primary-text-color);
    opacity: .86;
}

.merchant-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.merchant-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(var(--primary-rgb), .12);
    color: var(--primary-color);
    border: 1px solid rgba(var(--primary-rgb), .20);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.has-custom-primary .hero-section .merchant-tag {
    background: rgba(255,255,255,.18);
    color: var(--primary-text-color);
    border-color: rgba(255,255,255,.28);
}

/* ==========================================
   Section Shared
   ========================================== */
.card-section {
    padding: 24px 24px;
    position: relative;
}

.card-section + .card-section {
    padding-top: 8px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-dot {
    display: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.section-title {
    position: relative;
    padding-bottom: 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary-color);
}

.has-custom-primary .card-section {
    color: var(--primary-text-color);
}

.has-custom-primary .section-title {
    color: var(--primary-text-color);
}

.has-custom-primary .section-title::after {
    background: var(--primary-text-color);
    opacity: .82;
}

.has-custom-primary .about-content .description {
    color: var(--primary-text-color);
    opacity: .88;
}

.has-custom-primary .description-toggle {
    color: var(--primary-text-color);
}

.has-custom-primary .article-carousel-section,
.has-custom-primary .service-card,
.has-custom-primary .product-card,
.has-custom-primary .announcement-open-btn,
.has-custom-primary .gallery-more-btn,
.has-custom-primary .services-view-all,
.has-custom-primary .card-articles-list-item {
    background: var(--primary-color);
    color: var(--primary-text-color);
    border-color: rgba(255,255,255,.24);
}

.has-custom-primary .article-carousel-heading,
.has-custom-primary .article-carousel-all,
.has-custom-primary .faq-question,
.has-custom-primary .faq-answer,
.has-custom-primary .faq-chevron,
.has-custom-primary .service-name,
.has-custom-primary .service-desc,
.has-custom-primary .service-price,
.has-custom-primary .service-duration,
.has-custom-primary .service-desc-toggle,
.has-custom-primary .product-name,
.has-custom-primary .product-desc,
.has-custom-primary .product-price,
.has-custom-primary .product-original-price,
.has-custom-primary .social-label,
.has-custom-primary .share-btn,
.has-custom-primary .business-hours-toggle,
.has-custom-primary .business-hours-toggle-arrow,
.has-custom-primary .info-label,
.has-custom-primary .info-value {
    color: var(--primary-text-color);
}

.has-custom-primary .faq-answer,
.has-custom-primary .service-desc,
.has-custom-primary .product-desc {
    opacity: .86;
}

.has-custom-primary .faq-item,
.has-custom-primary .faq-item.open,
.has-custom-primary .service-card,
.has-custom-primary .product-card {
    border-color: rgba(255,255,255,.32);
}

.has-custom-primary .article-carousel-arrow {
    background: rgba(0,0,0,.24);
}

.has-custom-primary .article-carousel-dot {
    background: rgba(255,255,255,.34);
}

.has-custom-primary .article-carousel-dot.is-active {
    background: var(--primary-text-color);
}

.has-custom-primary .business-hours,
.has-custom-primary .service-duration,
.has-custom-primary .share-btn {
    background: rgba(255,255,255,.14);
}

/* Section dot colors */
.section-dot-mint { background: var(--macaron-mint); }
.section-dot-peach { background: var(--macaron-peach); }
.section-dot-rose { background: var(--macaron-rose); }
.section-dot-lemon { background: var(--macaron-lemon); }
.section-dot-blueberry { background: var(--macaron-blueberry); }
.section-dot-pistachio { background: var(--macaron-pistachio); }
.section-dot-lavender { background: var(--macaron-lavender); }

/* ==========================================
   Announcement Banner
   ========================================== */
.announcement-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 13px;
    line-height: 1.5;
    flex-wrap: wrap;
}

.announcement-image-link {
    flex-basis: 100%;
    display: block;
    margin: -12px -24px 4px;
}

.announcement-image {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.announcement-entry {
    padding: 14px 24px;
}

.announcement-open-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    color: #1F2937;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.announcement-open-btn:hover {
    border-color: #C7D2FE;
    background: #F9FAFB;
}

.announcement-open-label {
    font-weight: 600;
}

.announcement-open-arrow {
    color: #9CA3AF;
    font-size: 18px;
    line-height: 1;
}

.announcement-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.55);
    animation: promoFadeIn .2s;
}

.announcement-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
}

.announcement-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 1;
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255,255,255,.85);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: #4B5563;
    cursor: pointer;
}

.announcement-modal-media img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}

.announcement-modal-body {
    padding: 20px 24px 24px;
}

.announcement-modal-text {
    font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #1F2937;
    letter-spacing: .02em;
}

.announcement-modal-text p {
    margin: 0 0 .9em;
}

.announcement-modal-text h2,
.announcement-modal-text h3 {
    font-weight: 700;
    color: #111827;
    margin: 1.1em 0 .5em;
}

.announcement-modal-text h2 { font-size: 19px; }
.announcement-modal-text h3 { font-size: 16px; }

.announcement-modal-text ul,
.announcement-modal-text ol {
    margin: .5em 0 .9em;
    padding-left: 22px;
}

.announcement-modal-text li {
    margin: .25em 0;
}

.announcement-modal-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #4F46E5;
    text-decoration: none;
}

.announcement-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.announcement-text {
    flex: 1;
    min-width: 0;
}

.announcement-link {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.announcement-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-bottom: 1px solid #BFDBFE;
}

.announcement-warning {
    background: #FFFBEB;
    color: #92400E;
    border-bottom: 1px solid #FDE68A;
}

.announcement-success {
    background: #F0FDF4;
    color: #166534;
    border-bottom: 1px solid #BBF7D0;
}

.announcement-promo {
    background: #F5F3FF;
    color: #5B21B6;
    border-bottom: 1px solid #DDD6FE;
}

/* ==========================================
   Card Articles Modal
   ========================================== */
.card-articles-modal {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    overflow: hidden;
}

.card-articles-content {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px 24px;
}

.card-articles-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-articles-close,
.card-articles-share {
    position: static;
    padding: 7px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #FFFFFF;
    color: #4B5563;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.card-articles-share {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4F46E5;
    border-color: #C7D2FE;
}

.card-articles-share svg {
    width: 15px;
    height: 15px;
}

.card-articles-close:hover,
.card-articles-share:hover {
    border-color: #C7D2FE;
    background: #F5F7FF;
    color: #4F46E5;
}

.card-articles-article-head {
    padding-right: 156px;
    margin-bottom: 16px;
}

.card-articles-category {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin: 0 0 7px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
}

.card-articles-category--info {
    background: #DBEAFE;
    color: #1D4ED8;
}

.card-articles-category--success {
    background: #DCFCE7;
    color: #15803D;
}

.card-articles-category--warning {
    background: #FFEDD5;
    color: #C2410C;
}

.card-articles-category--promo {
    background: #FFE4E6;
    color: #BE123C;
}

.card-articles-kicker {
    font-size: 12px;
    font-weight: 700;
    color: #4F46E5;
    margin-bottom: 6px;
}

.card-articles-title {
    margin: 0 0 6px;
    font-family: "Noto Serif TC", "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 22px;
    line-height: 1.45;
    color: #111827;
}

.card-articles-date {
    font-size: 12px;
    color: #6B7280;
}

.card-articles-media {
    margin: 0 -24px 18px;
}

.card-articles-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 320px;
    object-fit: cover;
    background: #E5E7EB;
}

.card-articles-text {
    font-family: "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #1F2937;
    letter-spacing: .01em;
    word-break: break-word;
}

.card-articles-text p {
    margin: 0 0 .35em;
}

.card-articles-text h2,
.card-articles-text h3 {
    font-weight: 700;
    color: #111827;
    margin: 1.05em 0 .5em;
}

.card-articles-text h2 { font-size: 19px; }
.card-articles-text h3 { font-size: 16px; }

.card-articles-text ul,
.card-articles-text ol {
    margin: .5em 0 .95em;
    padding-left: 22px;
}

.card-articles-text li {
    margin: .25em 0;
}

.card-articles-link {
    display: inline;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #4F46E5;
    text-decoration: none;
}

.card-articles-link.card-articles-video {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}
.card-articles-link:hover { color: #4338CA; }

@keyframes cardVideoExpand {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
.card-inline-video-overlay { backdrop-filter: blur(2px); }
.card-inline-video-box { contain: layout; }
.card-inline-video-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.card-inline-video-close:hover {
    background: rgba(0, 0, 0, .82);
}

.card-article-comments {
    margin-top: 14px;
}

.card-article-comments-toggle {
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    padding: 7px 14px;
    background: #FFFFFF;
    color: #4F46E5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.card-article-comments-toggle:hover {
    background: #F5F7FF;
    border-color: #C7D2FE;
}

.card-article-comments-panel {
    margin-top: 12px;
}

.card-article-comment-form {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #F9FAFB;
}

.card-article-comment-label {
    font-size: 12px;
    color: #6B7280;
}

.card-article-comment-name,
.card-article-comment-input {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 7px;
    padding: 8px 10px;
    background: #FFFFFF;
    color: #1F2937;
    font: inherit;
    font-size: 13px;
}

.card-article-comment-input {
    resize: vertical;
    min-height: 68px;
}

.card-article-comment-name:focus,
.card-article-comment-input:focus {
    outline: none;
    border-color: #818CF8;
    box-shadow: 0 0 0 2px rgba(99,102,241,.12);
}

.card-article-comment-submit {
    justify-self: start;
    border: 0;
    border-radius: 7px;
    padding: 8px 13px;
    background: #4F46E5;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.card-article-comment-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.card-article-comments-status,
.card-article-comments-empty {
    color: #6B7280;
    font-size: 12px;
}

.card-article-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
}

.card-article-comment-meta time {
    color: #9CA3AF;
    font-weight: 400;
}

.card-article-comment {
    padding: 10px 0;
    border-bottom: 1px solid #F3F4F6;
    transition: background .2s ease, box-shadow .2s ease;
}

.card-article-comment.card-article-comment-highlight {
    background: #EEF2FF;
    box-shadow: inset 3px 0 0 #4F46E5;
    border-radius: 6px;
}

.card-article-comment p {
    margin: 5px 0 0;
    color: #4B5563;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.card-article-comment-reply {
    margin-top: 8px;
    padding: 8px 10px;
    border-left: 3px solid #818CF8;
    background: #EEF2FF;
    border-radius: 0 6px 6px 0;
    color: #3730A3;
    font-size: 12px;
    line-height: 1.6;
}

.card-article-comment-reply strong {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
}

.card-article-comment-reply p {
    margin: 0;
    color: #4338CA;
    font-size: 13px;
}

.card-articles-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

.card-articles-prev,
.card-articles-next,
.card-articles-all {
    border: none;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.card-articles-prev,
.card-articles-next {
    color: #4B5563;
    background: transparent;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.card-articles-prev {
    justify-self: end;
}

.card-articles-next {
    justify-self: start;
}

.card-articles-prev:hover,
.card-articles-next:hover {
    color: #4F46E5;
}

.card-articles-all {
    justify-self: center;
    padding: 7px 12px;
    background: #F3F4F6;
    color: #1F2937;
    border-radius: 999px;
    font-weight: 600;
}

.card-articles-all:hover {
    background: #E5E7EB;
}

.card-articles-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding-right: 86px;
    margin-bottom: 14px;
}

.card-articles-list-head h2 {
    margin: 0;
    font-family: "Noto Serif TC", "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-size: 20px;
    color: #111827;
}

.card-articles-back {
    border: none;
    background: transparent;
    color: #6B7280;
    cursor: pointer;
    font-size: 13px;
}

.card-articles-back:hover {
    color: #4F46E5;
}

.card-articles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-articles-list-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    color: #1F2937;
}

.card-articles-list-item:hover {
    border-color: #C7D2FE;
    background: #F5F7FF;
}.has-custom-primary .card-articles-list-item:hover,
.has-custom-primary .card-articles-list-item:focus-visible {
    background: var(--primary-color);
    color: var(--primary-text-color);
    border-color: rgba(255,255,255,.48);
}

.card-articles-list-title {
    font-weight: 600;
}

.card-articles-list-date {
    font-size: 12px;
    color: #6B7280;
}

.card-articles-empty {
    padding: 36px 0;
    text-align: center;
    color: #6B7280;
}

@media (max-width: 640px) {
    .card-articles-overlay {
        align-items: flex-start;
        padding: 12px;
        overflow: hidden;
    }

    .card-articles-modal {
        width: 100%;
        height: calc(100vh - 24px);
        height: calc(100dvh - 24px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overscroll-behavior: contain;
    }

    .card-articles-content {
        height: 100%;
        overflow-x: hidden;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
        padding: 20px 14px 20px;
    }

    .card-articles-media {
        margin: 0 -14px 16px;
    }

    .card-articles-actions {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    .card-articles-close,
    .card-articles-share {
        padding: 6px 12px;
        font-size: 12px;
    }

    .card-articles-article-head {
        padding-right: 132px;
    }

    .card-articles-list-head {
        min-height: 34px;
        padding-right: 72px;
    }

    .card-articles-title {
        font-size: 19px;
    }

    .card-articles-text {
        font-size: 14px;
    }

    .card-article-comment-form {
        padding: 10px;
    }

    .card-articles-prev,
    .card-articles-next {
        max-width: 96px;
    }
}

/* ==========================================
   CTA Buttons
   ========================================== */
.cta-section {
    padding: 4px 24px 24px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s var(--transition-smooth);
    width: 100%;
    letter-spacing: 0.3px;
    font-family: var(--font-family);
}

.cta-btn:active {
    transform: scale(0.97);
}

.cta-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.cta-btn-outline {
    background: white;
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.cta-btn-outline:active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cta-btn-icon {
    font-size: 18px;
    line-height: 1;
}

.booking-cta-btn,
.card-container:not(.is-wide) .booking-cta-btn,
.card-container.is-wide .booking-cta-btn {
    box-sizing: border-box;
    width: calc(100% - 48px);
    min-height: 50px;
    margin: 4px 24px 6px;
    font-size: 16px;
}

.cta-section .cta-btn {
    width: calc(100% - 48px);
    margin-left: 24px;
    margin-right: 24px;
}

/* When booking CTA is inserted as a sibling of the sections (no
   business-hours block), match the inner CTA width used by article/custom buttons. */
@media (min-width: 761px) {
    .card-container:not(.is-wide) > .booking-cta-btn,
    .card-container:not(.is-wide) #sectionContainer > .booking-cta-btn {
        width: calc(100% - 120px);
        margin-left: auto;
        margin-right: auto;
    }
    .card-container.is-wide > .booking-cta-btn,
    .card-container.is-wide #sectionContainer > .booking-cta-btn {
        width: calc(100% - 144px);
        margin-left: auto;
        margin-right: auto;
    }
}
.card-section-before-booking {
    padding-bottom: 0;
}

@media (max-width: 480px) {
    .card-section-before-booking { padding-bottom: 0; }
    .booking-cta-btn {
        min-height: 50px;
        width: calc(100% - 56px);
        margin: 2px 28px 6px;
        padding: 13px 18px;
    }
}

/* ==========================================
   Carousel (輪播圖)
   ========================================== */
.carousel-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    display: flex;
    gap: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    touch-action: pan-x pan-y;
}

.carousel-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-card);
    display: block;
    touch-action: pan-x pan-y;
}

.carousel-slide a {
    display: block;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

/* ==========================================
   YouTube
   ========================================== */
.youtube-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.youtube-item {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-title {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--macaron-vanilla);
}

/* ==========================================
   About Section
   ========================================== */
.about-content .description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
    white-space: pre-line;
}
/* Long-description collapse / expand */
.about-desc-wrap { margin-bottom: 16px; }
.about-desc-wrap .description { margin-bottom: 8px; }
.description-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.description-expanded {
    display: block;
    max-height: none;
}
.description-toggle {
    background: transparent;
    border: none;
    padding: 4px 8px;
    color: var(--primary, #6366F1);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.description-toggle:hover { text-decoration: underline; }

.business-hours {
    background: var(--macaron-vanilla);
    border-radius: var(--radius-sm);
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.business-hours-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border: 0;
    color: var(--text-color);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}

.business-hours-toggle-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.business-hours-toggle-arrow {
    flex: 0 0 auto;
    color: var(--text-light);
    transition: transform .25s ease;
}

.business-hours-toggle[aria-expanded="true"] .business-hours-toggle-arrow {
    transform: rotate(180deg);
}

.business-hours-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary-color) 28%, transparent);
    outline-offset: -3px;
}

.business-hours-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .28s ease, opacity .2s ease;
}

.business-hours-panel.is-open {
    max-height: 420px;
    opacity: 1;
}

.business-hours-panel .hours-grid {
    padding: 0 16px 16px;
}

.hours-grid {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 6px 16px;
    font-size: 13px;
}

.hours-day {
    color: var(--text-light);
    font-weight: 500;
}

.hours-time {
    color: var(--text-color);
}

.hours-time.closed {
    color: #e74c3c;
    font-weight: 500;
}

.hours-time.today {
    color: var(--primary-color);
    font-weight: 700;
}

.hours-day.today {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 480px) {
    .business-hours-toggle {
        min-height: 46px;
        padding: 12px 14px;
    }

    .business-hours-panel .hours-grid {
        padding: 0 14px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .business-hours-panel,
    .business-hours-toggle-arrow {
        transition: none;
    }
}

.info-items {
    display: flex;
    flex-direction: column;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    text-decoration: none;
}

.info-row:active {
    opacity: 0.7;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--macaron-vanilla);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

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

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    word-break: break-all;
}

.info-arrow {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
}

/* ==========================================
   Services Section
   ========================================== */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.service-card:active {
    transform: scale(0.98);
}

.service-img {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--macaron-vanilla);
    cursor: zoom-in;
}

.service-img:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.35);
    outline-offset: 3px;
}

.service-img-placeholder {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--macaron-vanilla);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.service-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.service-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    white-space: pre-line;   /* Preserve newlines in the description */
}
/* Collapsible long description: clamped 2-line preview → click toggle to expand */
.service-desc-wrap { display: block; }
.service-desc-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 4px;
    white-space: pre-line;   /* Preserve merchant's newlines once expanded */
}
.service-desc-toggle {
    background: none;
    border: none;
    padding: 4px 0;
    margin: 2px 0 0;
    color: var(--primary, #4F46E5);
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    display: inline-block;
}
.service-desc-toggle:hover { text-decoration: underline; }

.service-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.service-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.service-duration {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--macaron-vanilla);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.services-view-all {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    border: 1px solid #C7D2FE;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--primary-color);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.services-view-all:hover,
.services-view-all:focus-visible {
    background: #F5F7FF;
    outline: none;
}

.services-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 24, 39, .62);
    backdrop-filter: blur(3px);
}

.services-modal {
    display: flex;
    flex-direction: column;
    width: min(100%, 540px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.services-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.services-modal-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 19px;
}

.services-modal-close {
    flex: 0 0 auto;
    padding: 7px 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--text-light);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.services-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 16px 18px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

.services-modal-list .service-card {
    flex: 0 0 auto;
    box-shadow: none;
}

@media (max-width: 480px) {
    .services-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .services-modal {
        width: 100%;
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 18px 18px 0 0;
    }

    .services-modal-header {
        padding: 15px 16px;
    }

    .services-modal-list {
        padding: 12px 14px max(20px, env(safe-area-inset-bottom));
    }

    .services-modal-list .service-card {
        padding: 14px;
    }
}

/* ==========================================
   Gallery Section (相片牆)
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--transition-smooth);
}

.gallery-item:active img {
    transform: scale(1.05);
}

.gallery-more-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-color);
    font: 600 14px/1.2 inherit;
    font-family: inherit;
    cursor: pointer;
}

.gallery-more-btn:active {
    background: #F9FAFB;
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-item.open {
    border-color: var(--macaron-pistachio);
}

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

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform 0.3s var(--transition-smooth);
    color: var(--text-muted);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--macaron-pistachio);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--transition-smooth), padding 0.35s var(--transition-smooth);
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    white-space: pre-line;   /* Preserve merchant's newlines in answers */
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 16px 16px;
    overflow-y: auto;        /* Long answers scroll instead of getting clipped */
}

/* ==========================================
   Social Links (圓形圖標網格)
   ========================================== */
.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    width: 64px;
}

.social-item:active {
    transform: scale(0.92);
}

.social-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s var(--transition-smooth);
}

.social-icon-circle svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.social-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Social brand colors */
.social-bg-facebook { background: #1877F2; }
.social-bg-instagram { background: #E4405F; }
.social-bg-line { background: #06C755; }
.social-bg-google-maps { background: #34A853; }
.social-bg-youtube { background: #FF0000; }
.social-bg-tiktok { background: #010101; }
.social-bg-website { background: var(--primary-color); }
.social-bg-shopee { background: #EE4D2D; }
.social-bg-email { background: #6B7280; }
.social-bg-default { background: var(--primary-color); }
/* Online shop — brand gradient so it stands out as the first button */
.social-bg-shop { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color, #9333ea)); }

/* ==========================================
   Share Bar
   ========================================== */
.share-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-secondary);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.share-btn:hover {
    background: white;
    border-color: rgba(0,0,0,0.15);
}

/* Custom brand cards: keep the subscription/share row on the theme color
   instead of a white background with white text. */
.has-custom-primary .share-btn {
    background: var(--primary-color);
    border-color: rgba(255,255,255,.38);
    color: var(--primary-text-color);
}

.has-custom-primary .share-btn:hover {
    background: var(--secondary-color, var(--primary-color));
    border-color: rgba(255,255,255,.58);
    color: var(--primary-text-color);
}

.share-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.share-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}

.email-subscription-overlay { position:fixed; inset:0; z-index:2200; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(0,0,0,.55); }
.email-subscription-modal { position:relative; width:min(100%,420px); max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); box-sizing:border-box; overflow:auto; padding:26px; border-radius:14px; background:#fff; color:#1F2937; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.email-subscription-modal h2 { margin:0 0 8px; font-size:22px; }
.email-subscription-modal p { margin:0 0 18px; color:#6B7280; font-size:14px; }
.email-subscription-modal label { display:block; margin-bottom:6px; font-size:13px; font-weight:600; }
.email-subscription-modal input { width:100%; box-sizing:border-box; padding:11px 12px; border:1px solid #D1D5DB; border-radius:8px; font:inherit; }
.email-subscription-modal form > button { width:100%; margin-top:12px; padding:11px 14px; border:0; border-radius:8px; color:#fff; background:#4F46E5; font:inherit; cursor:pointer; }
.email-subscription-modal form > button:disabled { opacity:.6; cursor:wait; }
.email-subscription-modal form > .email-unsubscribe-button { margin-top:10px; border:1px solid #D1D5DB; color:#4B5563; background:#fff; }
.email-subscription-modal form > .email-unsubscribe-button:hover { border-color:#9CA3AF; background:#F9FAFB; }

/* Booking stays inside the card page. Only the explicit close button closes it. */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(17, 24, 39, .62);
}

.booking-modal {
    width: min(100%, 760px);
    height: min(90vh, 820px);
    height: min(90dvh, 820px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

.booking-modal-header {
    min-height: 58px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 10px 20px;
    border-bottom: 1px solid #E5E7EB;
    background: #fff;
}

.booking-modal-header h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-modal-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid #D1D5DB;
    border-radius: 50%;
    background: #fff;
    color: #374151;
    font: 600 26px/1 sans-serif;
    cursor: pointer;
}

.booking-modal-close:hover,
.booking-modal-close:focus-visible {
    border-color: #4F46E5;
    color: #4F46E5;
    outline: none;
}

.booking-modal-frame {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    border: 0;
    background: #F9FAFB;
}

@media (max-width: 600px) {
    .booking-modal-overlay { padding: 0; }
    .booking-modal {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }
    .booking-modal-header {
        min-height: 56px;
        padding: max(8px, env(safe-area-inset-top)) 10px 8px 16px;
    }
    .booking-modal-header h2 { font-size: 16px; }
}
@media (max-width: 760px) {
    /* Mobile: let long service descriptions expand into the page and use the
       normal page scroll instead of a cramped inner scroller. */
    .service-desc.expanded {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

.email-subscription-close { position:absolute; top:10px; right:12px; border:0; background:none; color:#6B7280; font-size:26px; cursor:pointer; }
.email-subscription-status { min-height:20px; margin-top:12px; color:#4F46E5; font-size:13px; line-height:1.5; }

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* QR Modal */
.qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}

.qr-overlay.show {
    opacity: 1;
}

.qr-modal {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.2s;
}

.qr-overlay.show .qr-modal {
    transform: scale(1);
}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    transition: background 0.15s;
}

.qr-modal-close:hover {
    background: #e0e0e0;
}

.qr-modal h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.qr-canvas-wrap {
    display: inline-block;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 12px;
}

.qr-canvas-wrap canvas {
    display: block;
}

.qr-url {
    font-size: 11px;
    color: #aaa;
    word-break: break-all;
    margin-bottom: 16px;
    line-height: 1.4;
}

.qr-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    color: #555;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.qr-save-btn:hover {
    background: #f5f5f5;
}

/* ==========================================
   Footer
   ========================================== */
.card-footer {
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

.card-footer p {
    opacity: 0.4;
}

.card-copyright-footer {
    padding: 22px 20px 28px;
    text-align: center;
    color: var(--text-muted, #7B8190);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* ==========================================
   Chat FAB
   ========================================== */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.25s var(--transition-smooth);
    animation: fabPulse 3s infinite;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: var(--shadow-lg); }
    50% { box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4), 0 0 0 8px rgba(var(--primary-rgb), 0.1); }
}

.chat-fab:focus,
.chat-fab:focus-visible {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.chat-fab:active {
    transform: scale(0.92);
    animation: none;
}

.chat-fab.open {
    animation: none;
}

.chat-fab.open .chat-fab-icon { display: none; }
.chat-fab.open .chat-fab-close { display: block !important; }

.chat-fab-hint {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
    pointer-events: none;
}

/* ==========================================
   Chat Panel
   ========================================== */
.chat-panel {
    position: fixed;
    bottom: 96px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: 380px;
    height: 500px;
    max-height: calc(100vh - 130px);
    background: white;
    border-radius: var(--radius-card);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp 0.3s var(--transition-smooth);
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--primary-color);
    color: white;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.chat-header-name { font-size: 15px; font-weight: 600; }

.chat-header-status {
    font-size: 11px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4caf50;
    display: inline-block;
}

.chat-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fafbfc;
}

.chat-welcome {
    text-align: center;
    padding: 20px 0;
}

.chat-welcome p {
    color: var(--text-light);
    font-size: 14px;
    background: white;
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    animation: bubbleIn 0.25s var(--transition-smooth);
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.bot {
    background: white;
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.user {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-typing {
    align-self: flex-start;
    padding: 12px 16px;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-typing-dots { display: flex; gap: 4px; }

.chat-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite;
}

.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-8px); opacity: 1; }
}

.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border-color);
    background: white;
}

.chat-input {
    flex: 1;
    min-width: 0;
    padding: 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.2s;
    background: #fafbfc;
}

.chat-input:focus {
    border-color: var(--primary-color);
    background: white;
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.chat-send-btn:active { transform: scale(0.9); }
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 語音模式切換按鈕 */
.chat-voice-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.chat-voice-toggle.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 語音輸入區域 */
.chat-voice-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.chat-voice-status {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

/* 麥克風按鈕 */
.chat-mic-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.chat-mic-btn.recording {
    background: #e53935;
    animation: mic-pulse 1.5s infinite;
}

@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(229, 57, 53, 0); }
}

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    animation: lightboxFadeIn 0.3s;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2001;
    border-radius: 50%;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.45);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-nav:hover { background: rgba(0,0,0,.7); }
.lightbox-prev { left: max(16px, calc(50% - 330px)); }
.lightbox-next { right: max(16px, calc(50% - 330px)); }

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation: lightboxZoomIn 0.3s var(--transition-smooth);
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    color: white;
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .lightbox { padding: 16px 10px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 25px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* ==========================================
   Mobile
   ========================================== */
@media (max-width: 480px) {
    .chat-panel {
        top: var(--card-chat-vv-top, 0px);
        bottom: auto;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: var(--card-chat-vv-height, 100vh);
        max-height: var(--card-chat-vv-height, 100vh);
        border-radius: 0;
    }
    .chat-fab {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    .chat-fab.open {
        display: none !important;
    }
    .chat-input-area {
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
    }
    .hero-cover {
        height: 180px;
    }
    .card-section {
        padding: 20px 20px;
    }
    #sectionContainer > .card-section:last-child {
        padding-bottom: 8px;
    }
    .card-copyright-footer {
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    }
}

/* ==========================================
   Utility
   ========================================== */
.hidden { display: none !important; }

/* ==========================================
   商品 Grid
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    transition: transform 0.2s;
}
.product-card:active {
    transform: scale(0.98);
}
.product-card.sold-out {
    opacity: 0.6;
}
.product-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.product-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--macaron-vanilla, #FFF5E6);
    font-size: 2em;
}
.product-sold-out-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}
.product-info {
    padding: 10px;
}
.product-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.product-price {
    font-weight: 700;
    color: var(--primary-color, #667eea);
    font-size: 15px;
}
.product-original-price {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}
.product-add-btn {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-radius: 8px;
    background: var(--primary-color, #667eea);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}
.product-add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.product-add-btn:not(:disabled):active {
    opacity: 0.8;
}

/* ==========================================
   購物車 FAB
   ========================================== */
.cart-fab {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-color, #667eea);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.2s;
}
.cart-fab:active {
    transform: scale(0.92);
}
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ==========================================
   購物車面板
   ========================================== */
.cart-overlay, .checkout-overlay, .order-success-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 10000;
    display: flex;
    justify-content: flex-end;
}
.cart-backdrop, .checkout-backdrop {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s;
}
.cart-overlay.active .cart-backdrop,
.checkout-overlay.active .checkout-backdrop {
    opacity: 1;
}
.cart-panel, .checkout-panel {
    position: relative;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.cart-overlay.active .cart-panel,
.checkout-overlay.active .checkout-panel {
    transform: translateX(0);
}
.cart-header, .checkout-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h3, .checkout-header h3 {
    margin: 0;
    font-size: 18px;
}
.cart-close-btn, .checkout-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}
.cart-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.cart-empty span {
    font-size: 3em;
    display: block;
    margin-bottom: 12px;
}
.cart-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    font-size: 1.2em;
}
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-price {
    font-size: 13px;
    color: var(--primary-color, #667eea);
    font-weight: 600;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty-num {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
.cart-remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
}
.cart-remove-btn:hover {
    color: #e74c3c;
}
.cart-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    background: #fff;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
}
.cart-total {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color, #667eea);
}
.cart-checkout-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color, #667eea);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.cart-checkout-btn:active {
    opacity: 0.85;
}

/* ==========================================
   結帳面板
   ========================================== */
.checkout-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}
.checkout-section {
    margin-bottom: 20px;
}
.checkout-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}
.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}
.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0 0;
    border-top: 1px solid #eee;
    margin-top: 8px;
    font-size: 16px;
}
.checkout-field {
    margin-bottom: 12px;
}
.checkout-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #555;
}
.checkout-field .required {
    color: #e74c3c;
}
.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
}
.checkout-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color, #667eea);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}
.checkout-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ==========================================
   訂單成功
   ========================================== */
.order-success-overlay {
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
}
.order-success-overlay.active {
    /* just show */
}
.order-success-panel {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.order-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.order-success-panel h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
}
.order-success-panel p {
    margin: 4px 0;
    font-size: 14px;
    color: #555;
}
.order-success-note {
    margin-top: 12px !important;
    color: #999 !important;
    font-size: 13px !important;
}
.order-success-btn {
    margin-top: 20px;
    padding: 12px 40px;
    border: none;
    border-radius: 10px;
    background: var(--primary-color, #667eea);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================
   Toast 通知
   ========================================== */
.shop-toast {
    position: fixed;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
.shop-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================
   Article carousel
   ========================================== */
.article-carousel-section {
    position: relative;
    padding: 18px 16px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}
.article-carousel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.article-carousel-heading {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}
.article-carousel-all {
    flex-shrink: 0;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.article-carousel-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}
.article-carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}
.article-carousel-track::-webkit-scrollbar { display: none; }
.article-carousel-card {
    position: relative;
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #E5E7EB;
    color: #fff;
    text-align: left;
    scroll-snap-align: start;
    cursor: pointer;
}
.article-carousel-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-carousel-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 34%, rgba(15,23,42,.82) 100%);
    pointer-events: none;
}
.article-carousel-type {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.article-carousel-copy {
    position: absolute;
    right: 14px;
    bottom: 12px;
    left: 14px;
    display: block;
}
.article-carousel-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.article-carousel-copy small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.82);
    font-size: 11px;
}
.article-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border: 0;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), .88);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), .28);
}
.article-carousel-arrow:disabled { opacity: .28; cursor: default; }
.article-carousel-prev { left: 8px; }
.article-carousel-next { right: 8px; }
.article-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    min-height: 8px;
    margin-top: 10px;
}
.article-carousel-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #D1D5DB;
    cursor: pointer;
}
.article-carousel-dot.is-active {
    width: 20px;
    background: var(--primary-color);
}
@media (max-width: 480px) {
    .article-carousel-section { padding: 16px 14px 18px; }
    .article-carousel-card { aspect-ratio: 16 / 10; }
    .article-carousel-copy strong { font-size: 16px; }
    .article-carousel-arrow { width: 30px; height: 30px; margin-top: -15px; }
}

/* ==========================================
   Custom theme exceptions
   ========================================== */
.has-custom-primary .hero-digu {
    background: rgba(0,0,0,.18);
    border-color: rgba(255,255,255,.28);
}

.has-custom-primary .hero-digu-text {
    color: var(--primary-text-color);
}

.has-custom-primary .business-hours {
    background: #fff;
}

.has-custom-primary .business-hours-toggle {
    color: var(--text-color);
}

.has-custom-primary .business-hours-toggle-arrow,
.has-custom-primary .hours-day {
    color: var(--text-light);
}

.has-custom-primary .hours-time {
    color: var(--text-color);
}

.has-custom-primary .hours-time.closed {
    color: #e74c3c;
}

.has-custom-primary .hours-time.today,
.has-custom-primary .hours-day.today {
    color: var(--primary-color);
}

.has-custom-primary .social-bg-website {
    background: #0ABAB5;
}

        /* Size control critical overrides: kept inline so a stale /css/card.css
           deployment cannot move the control back to the viewport edge. */
        .card-container { overflow: visible; }
        .card-container.is-wide { overflow: visible; }
        .card-size-control {
            position: fixed !important;
            top: 50% !important;
            right: 10px !important;
            z-index: 1200;
            transform: translateY(-50%) !important;
            pointer-events: none;
        }
        .card-size-toggle {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            padding: 0;
            border: 1px solid var(--border-color);
            border-radius: 999px;
            background: rgba(255,255,255,.92);
            color: #94A3B8;
            box-shadow: 0 6px 18px rgba(15,23,42,.14), inset 0 1px 0 rgba(255,255,255,.95);
            font-family: var(--font-family);
            cursor: pointer;
            pointer-events: auto;
        }
        .card-size-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
        .card-size-toggle .card-size-icon-collapse,
        .card-size-toggle[aria-pressed="true"] .card-size-icon-expand { display: none; }
        .card-size-toggle[aria-pressed="true"] .card-size-icon-collapse { display: block; }
        .card-container.is-wide .card-size-toggle {
            color: var(--primary-color);
            border-color: rgba(var(--primary-rgb), 0.35);
            background: #fff;
        }
        @media (min-width: 761px) {
            .card-container { max-width: 720px; font-size: 16px; }
            .card-container:not(.is-wide) .hero-cover { height: 230px; }
            .card-container:not(.is-wide) .hero-content { padding: 0 36px; }
            .card-container:not(.is-wide) .avatar-wrapper { width: 108px; height: 108px; }
            .card-container:not(.is-wide) .merchant-name { font-size: 34px; }
            .card-container:not(.is-wide) .merchant-subtitle { font-size: 16px; max-width: 520px; }
            .card-container:not(.is-wide) .card-section { padding: 28px 36px; }
            .card-container:not(.is-wide) .section-title { font-size: 19px; }
            .card-container:not(.is-wide) .about-content .description { font-size: 16.5px; line-height: 1.85; }
            .card-container:not(.is-wide) .cta-section { padding: 0 36px 28px; }
            .card-container:not(.is-wide) .cta-buttons { flex-direction: row; flex-wrap: wrap; }
            .card-container:not(.is-wide) .cta-btn { flex: 1 1 220px; font-size: 16px; padding: 15px 22px; }
            .card-container.is-wide .services-grid {
                display: grid !important;
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 16px !important;
            }
            .card-container:not(.is-wide) .services-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 14px !important; }
            .card-container:not(.is-wide) .service-img,
            .card-container:not(.is-wide) .service-img-placeholder { width: 96px; height: 96px; }
            .card-container:not(.is-wide) .service-name { font-size: 16px; }
            .card-container:not(.is-wide) .service-desc { font-size: 14px; }
            .card-container:not(.is-wide) .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
            .card-container:not(.is-wide) .product-name { font-size: 16px; }
            .card-container:not(.is-wide) .product-desc { font-size: 13px; }
            .card-container:not(.is-wide) .business-hours { padding: 0; margin-bottom: 8px; }
            .card-container:not(.is-wide) .business-hours-toggle { min-height: 52px; padding: 15px 18px; font-size: 15.5px; }
            .card-container:not(.is-wide) .business-hours-panel .hours-grid { padding: 0 18px 18px; }
            .card-container:not(.is-wide) .hours-grid { grid-template-columns: 60px 1fr; gap: 8px 18px; font-size: 15px; }
            .card-container:not(.is-wide) .card-section-before-booking { padding-bottom: 0; }
            .card-container:not(.is-wide) .card-section-before-booking .business-hours { margin-bottom: 8px; }
        }
        body.card-desktop-mode .card-articles-modal { max-width: min(720px, calc(100vw - 40px)); }
        body.card-desktop-mode .card-articles-title { font-size: 26px; }
        body.card-desktop-mode .card-articles-text { font-size: 16px; line-height: 1.45; }
        body.card-desktop-mode .card-inline-video-box { max-width: min(650px, calc(85vw - 40px)) !important; }
        body.card-desktop-mode .services-modal { width: min(100%, 720px); }
        body.card-desktop-mode .booking-modal { width: min(100%, 780px); }
        body.card-wide-mode .announcement-modal { max-width: min(920px, calc(100vw - 48px)); max-height: 88vh; }
        body.card-wide-mode .card-articles-modal { max-width: min(920px, calc(100vw - 48px)); }
        body.card-wide-mode .card-articles-content { padding: 30px 40px 36px; }
        body.card-wide-mode .card-articles-title { font-size: 30px; }
        body.card-wide-mode .card-articles-text { font-size: 17px; line-height: 1.45; }
        body.card-wide-mode .card-articles-media img { max-height: 420px; }
        body.card-wide-mode .card-inline-video-box { max-width: min(840px, calc(85vw - 48px)) !important; }
        body.card-wide-mode .services-modal { width: min(100%, 920px); }
        body.card-wide-mode .services-modal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
        body.card-wide-mode .cart-panel,
        body.card-wide-mode .checkout-panel { max-width: 560px; }
        body.card-wide-mode .booking-modal { width: min(100%, 980px); height: min(92vh, 920px); height: min(92dvh, 920px); }
        body.card-wide-mode .email-subscription-modal { width: min(100%, 720px); }
        body.card-wide-mode .lightbox-img { max-height: 88vh; max-width: min(94vw, 1200px); }
        body.card-wide-mode .lightbox-prev { left: max(24px, calc(50% - 620px)); }
        body.card-wide-mode .lightbox-next { right: max(24px, calc(50% - 620px)); }
        @media (max-width: 760px) {
            .card-section-before-booking { padding-bottom: 0; }
            .card-section-before-booking .business-hours { margin-bottom: 8px; }
            .business-hours-toggle { min-height: 50px; padding: 14px 16px; }
            .booking-cta-btn { width: calc(100% - 56px); margin: 2px 28px 6px; }
            .cta-section .cta-btn { width: calc(100% - 48px); margin-left: 24px; margin-right: 24px; }
            .card-size-control { display: none !important; }
        }

        /* Server-rendered content visible to crawlers; client JS replaces with interactive UI */
        .ssr-only { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

        /* ─── Shop banner (in-card CTA into the storefront) ─────────────── */
        .shop-banner {
            display: flex; align-items: center; gap: 14px;
            margin: 16px 16px 4px;
            padding: 16px 18px;
            border-radius: 16px;
            text-decoration: none;
            color: #fff;
            background: var(--primary-color, #4F46E5); /* solid fallback */
            background: linear-gradient(135deg, var(--primary-color, #4F46E5), var(--secondary-color, #7C3AED));
            box-shadow: 0 8px 22px rgba(0,0,0,.16);
            position: relative; overflow: hidden;
            transition: transform .18s ease, box-shadow .18s ease;
            animation: shopBannerIn .5s cubic-bezier(.22,1,.36,1) both;
        }
        /* Subtle sheen */
        .shop-banner::after {
            content: ''; position: absolute; inset: 0;
            background: radial-gradient(120% 100% at 100% 0%, rgba(255,255,255,.18), transparent 60%);
            pointer-events: none;
        }
        .shop-banner:active { transform: scale(.985); }
        @media (hover:hover) {
            .shop-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
            .shop-banner:hover .shop-banner-arrow { transform: translateX(4px); }
        }
        .shop-banner-icon {
            flex-shrink: 0; width: 46px; height: 46px;
            display: flex; align-items: center; justify-content: center;
            font-size: 24px; border-radius: 12px;
            background: rgba(255,255,255,.18);
        }
        .shop-banner-text { flex: 1; min-width: 0; line-height: 1.35; }
        .shop-banner-title { display: block; font-size: 16px; font-weight: 700; letter-spacing: .02em; }
        .shop-banner-sub   { display: block; font-size: 12.5px; opacity: .88; margin-top: 2px; }
        .shop-banner-arrow {
            flex-shrink: 0; font-size: 20px; font-weight: 700;
            transition: transform .18s ease; opacity: .9;
        }
        @keyframes shopBannerIn {
            from { opacity: 0; transform: translateY(10px); }
            to   { opacity: 1; transform: translateY(0); }
        }
