/*
Theme Name: 基隆白馬
Description: 基隆白馬 v6 設計的原生 WordPress 主題，搭配「基隆白馬內容管理」外掛。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Author: 基隆白馬
License: GPL-2.0-or-later
Text Domain: whitehorse
*/
/* WH image fallback: only failed product images; normal images are unchanged. */
img.wh-image-failed{display:none!important}
.wh-image-fallback{display:flex;align-items:center;justify-content:center;width:100%;min-height:96px;padding:20px;border:1px solid var(--line);background:#faf8f5;color:var(--muted);text-align:center;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.wh-image-fallback--detail{min-height:160px}
.wh-image-fallback--swatch{width:auto;max-width:260px;min-height:0;margin-top:18px;padding:10px 12px;font-size:12px}
/* End WH image fallback. */

.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.skip-link:focus{position:fixed;top:8px;left:8px;z-index:10000;padding:12px;background:#fff;clip:auto;width:auto;height:auto}.top-categories a{background:#fff;border:1px solid var(--line);padding:9px 23px;color:var(--accent);margin:0;font-size:16px}.top-categories a.active{background:var(--accent);color:#fff}.filter-submit{align-self:end;justify-self:start}.filters{grid-template-columns:1.5fr 1fr 1fr auto}.entry-content p{margin:0 0 1em}.wp-block-image img{height:auto}.article-body figure{margin:1em 0}.article-body a{text-decoration:underline}.article-body h3{font-size:21px}.wh-page{padding:60px 0 80px}.wh-menu{display:flex;gap:25px;list-style:none;padding:0;margin:0}.review-body p{margin:0}.carousel #slide-photo{position:relative}.filters label{min-width:0}.product-card h2 span{float:right}.wp-caption{max-width:100%}.wp-caption-text,.wp-element-caption{font-size:13px}
.door-card img{aspect-ratio:4/5;object-fit:contain;padding:14px;background:#fff}.detail-photo.door-photo{aspect-ratio:4/5;max-height:760px;object-fit:contain;padding:20px;background:#fff}
.review-card{background:#fff;border:1px solid #dadce0;border-radius:12px;padding:26px;gap:0;justify-content:flex-start;box-shadow:0 1px 2px #3c404314;font-family:'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif}.review-card .review-author{justify-content:flex-start;align-items:center;gap:14px;margin:0 0 16px}.review-card .review-avatar-neutral{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#f1f3f4;color:#5f6368}.review-avatar-neutral svg{display:block}.review-card .review-stars{color:#fbbc04;font:22px/1.2 Arial,sans-serif;letter-spacing:2px}.review-card .review-body{font:400 16px/1.8 'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif;color:#3c4043;margin:0 0 16px;min-height:0;overflow-wrap:anywhere}.review-card:has(.review-expand) .review-body{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;max-height:7.2em;overflow:hidden}.review-card:has(.review-expand[open]) .review-body{display:block;-webkit-line-clamp:unset;max-height:none;overflow:visible}.review-expand{margin:0 0 18px}.review-expand summary{list-style:none;cursor:pointer;color:#1a73e8;font-size:14px;font-weight:500;min-height:30px;display:inline-flex;align-items:center}.review-expand summary::-webkit-details-marker{display:none}.review-expand summary:focus-visible{outline:3px solid #ae7440;outline-offset:4px}.review-less{display:none}.review-expand[open] .review-more{display:none}.review-expand[open] .review-less{display:inline}.review-source-link{align-self:flex-start;margin-top:auto;color:#1a73e8;font-size:13px;line-height:1.5;text-decoration:none}.review-source-link:hover{text-decoration:underline}@supports not selector(:has(*)){.review-expand{display:none}}
.catalog-visit{margin:0 0 70px;padding:36px;border:1px solid var(--line);background:#faf8f5}.catalog-visit .section-title{font-size:clamp(23px,2.4vw,30px);margin:0 0 14px}.catalog-visit p{max-width:780px;color:var(--muted);line-height:1.9}.catalog-visit .button{color:var(--accent);margin-top:8px}
@media(max-width:900px){.wh-menu{flex-direction:column}.filters{grid-template-columns:1.5fr 1fr 1fr}.filter-submit{grid-column:1/-1}}@media(max-width:600px){.top-categories a{padding:7px 15px}.filters{grid-template-columns:1fr 1fr}.filters label:first-of-type{grid-column:1/-1}.filter-submit{grid-column:1/-1}.door-card img{padding:8px}.detail-photo.door-photo{padding:12px;max-height:620px}.review-card{padding:22px}.review-card .review-author{gap:12px}.review-card .review-body{font-size:16px}.review-card .review-avatar-neutral{flex-basis:40px;width:40px;height:40px}.catalog-visit{padding:24px;margin-bottom:50px}}
