:root {
    --brand-primary: #2c2028;
    --brand-secondary: #f8e9ef;
    --brand-accent: #e53178;
    --brand-surface: #fffafc;
    --brand-text: #272125;
    --brand-muted: #766d73;
    --brand-header: #ffffff;
    --brand-header-text: #272125;
    --brand-card: #ffffff;
    --brand-notice: #e53178;
    --brand-notice-text: #ffffff;
    --brand-button-text: #ffffff;
    --brand-primary-text: #ffffff;
    --line: color-mix(in srgb, var(--brand-text) 13%, transparent);
    --soft-line: color-mix(in srgb, var(--brand-text) 7%, transparent);
    --shadow-sm: 0 8px 26px color-mix(in srgb, var(--brand-primary) 9%, transparent);
    --shadow-lg: 0 28px 80px color-mix(in srgb, var(--brand-primary) 16%, transparent);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --shell: min(1240px, calc(100% - 40px));
    color: var(--brand-text);
    background: var(--brand-surface);
    font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; overflow-x: hidden; background: var(--brand-surface); color: var(--brand-text); line-height: 1.65; }
body.nav-open, body.search-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, .button { cursor: pointer; }
.shell { width: var(--shell); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: var(--brand-card); box-shadow: var(--shadow-sm); }
.skip-link:focus { top: 16px; }
.mobile-only, .mobile-search-button, .mobile-bottom-nav { display: none; }

.site-header { position: sticky; top: 0; z-index: 60; background: var(--brand-header); color: var(--brand-header-text); border-bottom: 1px solid var(--soft-line); }
.notice-bar { min-height: 34px; display: flex; align-items: center; background: var(--brand-notice); color: var(--brand-notice-text); font-size: 12px; }
.notice-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; }
.notice-label { padding-right: 14px; border-right: 1px solid color-mix(in srgb, var(--brand-notice-text) 35%, transparent); font-weight: 900; letter-spacing: .14em; }
.notice-track { min-width: 0; height: 22px; position: relative; overflow: hidden; }
.notice-item { position: absolute; inset: 0; opacity: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.notice-item.is-active { opacity: 1; transform: translateY(0); }
.notice-trust { opacity: .82; letter-spacing: .08em; }
.header-main { min-height: 84px; display: grid; grid-template-columns: minmax(150px, 220px) minmax(260px, 620px) auto; align-items: center; justify-content: space-between; gap: 30px; }
.brand { min-width: 0; display: inline-flex; align-items: baseline; gap: 7px; color: var(--brand-primary); font-family: Georgia, "Noto Serif TC", serif; }
.brand span { overflow: hidden; font-size: clamp(25px, 3vw, 36px); font-weight: 900; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
.brand small { color: var(--brand-accent); font: 800 9px/1 sans-serif; letter-spacing: .2em; }
.brand img { max-width: 210px; max-height: 62px; object-fit: contain; object-position: left center; }
.header-search { width: 100%; height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-surface); transition: border-color .2s, box-shadow .2s; }
.header-search:focus-within { border-color: var(--brand-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 12%, transparent); }
.header-search > .icon { margin-left: 17px; color: var(--brand-muted); }
.header-search input { min-width: 0; height: 100%; padding: 0 13px; border: 0; outline: 0; background: transparent; }
.header-search input::placeholder { color: var(--brand-muted); }
.header-search button { height: 100%; padding: 0 25px; border: 0; background: var(--brand-accent); color: var(--brand-button-text); font-size: 13px; font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 19px; }
.icon-action { min-width: 42px; position: relative; display: grid; justify-items: center; gap: 2px; border: 0; background: transparent; font-size: 11px; white-space: nowrap; }
.icon-action:hover { color: var(--brand-accent); }
.icon-action b, .bottom-cart b { min-width: 19px; height: 19px; position: absolute; top: -7px; right: -2px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--brand-accent); color: var(--brand-button-text); font-size: 10px; }
.site-nav { border-top: 1px solid var(--soft-line); background: var(--brand-header); }
.nav-inner { min-height: 47px; display: flex; align-items: stretch; justify-content: center; overflow: hidden; }
.nav-inner a { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 0 clamp(13px, 1.6vw, 23px); font-size: 13px; font-weight: 750; white-space: nowrap; transition: color .2s, background .2s; }
.nav-inner a:hover { background: color-mix(in srgb, var(--brand-secondary) 60%, transparent); color: var(--brand-accent); }
.nav-home .icon { width: 18px; }
.nav-home span { display: none; }
.icon-button { width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.service-nav { border-top: 1px solid var(--soft-line); background: color-mix(in srgb, var(--brand-secondary) 42%, var(--brand-header)); }
.service-nav-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 0; overflow-x: auto; scrollbar-width: none; }
.service-nav-inner::-webkit-scrollbar { display: none; }
.service-nav a { flex: 0 0 auto; padding: 8px 18px; color: var(--brand-muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.service-nav a + a { border-left: 1px solid var(--soft-line); }
.service-nav a:hover, .service-nav a[aria-current="page"] { color: var(--brand-accent); }

.home-hero { height: clamp(430px, 42vw, 540px); min-height: 430px; position: relative; overflow: hidden; background: var(--brand-secondary); }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { display: grid; align-items: center; opacity: 0; visibility: hidden; isolation: isolate; background: linear-gradient(135deg, var(--brand-secondary), color-mix(in srgb, var(--brand-accent) 15%, var(--brand-surface))); transition: opacity .7s ease, visibility .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-background { width: 100%; height: 100%; position: absolute; inset: 0; z-index: -2; object-fit: cover; object-position: center; }
.hero-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--brand-surface) 96%, transparent) 0%, color-mix(in srgb, var(--brand-surface) 88%, transparent) 38%, color-mix(in srgb, var(--brand-surface) 18%, transparent) 75%, transparent 100%); }
.hero-content { padding-bottom: 45px; }
.eyebrow { display: block; color: var(--brand-accent); font-size: 11px; font-weight: 900; letter-spacing: .19em; }
.hero-content h1 { max-width: 720px; margin: 15px 0 20px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(42px, 6.4vw, 78px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.hero-content p { max-width: 570px; margin: 0 0 31px; color: var(--brand-muted); font-size: clamp(16px, 2vw, 19px); }
.button { min-height: 48px; width: fit-content; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 25px; border: 0; border-radius: 999px; background: var(--brand-accent); color: var(--brand-button-text); font-weight: 850; box-shadow: 0 10px 28px color-mix(in srgb, var(--brand-accent) 25%, transparent); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 15px 32px color-mix(in srgb, var(--brand-accent) 32%, transparent); }
.button .icon { width: 18px; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.hero-controls { position: absolute; left: 50%; bottom: 34px; z-index: 5; display: flex; gap: 8px; transform: translateX(-50%); }
.hero-controls button { width: 31px; height: 5px; padding: 0; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--brand-text) 25%, transparent); transition: width .2s, background .2s; }
.hero-controls button.is-active { width: 54px; background: var(--brand-accent); }

.service-strip { border-bottom: 1px solid var(--soft-line); background: var(--brand-card); }
.service-grid { min-height: 116px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.service-grid > div { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 24px; border-right: 1px solid var(--soft-line); }
.service-grid > div:first-child { border-left: 1px solid var(--soft-line); }
.service-grid .icon { width: 29px; height: 29px; color: var(--brand-accent); }
.service-grid span { min-width: 0; display: grid; }
.service-grid strong { font-size: 14px; }
.service-grid small { overflow: hidden; color: var(--brand-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.section { padding-block: clamp(65px, 8vw, 105px); }
.section + .section { padding-top: 15px; }
.section-tint { background: var(--brand-secondary); }
.section-tint + .section { padding-top: clamp(65px, 8vw, 105px); }
.section-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2, .product-description h2 { margin: 6px 0 2px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(30px, 4vw, 45px); line-height: 1.18; letter-spacing: -.03em; }
.section-heading p { margin: 8px 0 0; color: var(--brand-muted); font-size: 14px; }
.section-link, .text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--brand-accent); font-size: 13px; font-weight: 850; white-space: nowrap; }
.section-link .icon, .text-link .icon { width: 17px; transition: transform .2s; }
.section-link:hover .icon, .text-link:hover .icon { transform: translateX(4px); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { min-height: 152px; position: relative; display: grid; align-content: end; padding: 23px; overflow: hidden; border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--brand-card); box-shadow: var(--shadow-sm); transition: transform .22s, border-color .22s, box-shadow .22s; }
.category-card:hover { transform: translateY(-4px); border-color: var(--brand-accent); box-shadow: var(--shadow-lg); }
.category-card > .icon { position: absolute; right: 18px; bottom: 19px; width: 18px; color: var(--brand-accent); }
.category-icon { position: absolute; top: 12px; right: 18px; color: color-mix(in srgb, var(--brand-accent) 18%, transparent); font: 800 46px/1 Georgia, serif; }
.category-icon.has-image { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 20px; background: var(--brand-surface); }
.category-icon.has-image img { width: 100%; height: 100%; object-fit: contain; }
.category-card strong { max-width: calc(100% - 28px); font-size: 16px; }
.category-card small { max-width: calc(100% - 28px); margin-top: 3px; overflow: hidden; color: var(--brand-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 38px) clamp(12px, 2vw, 24px); }
.product-card { min-width: 0; }
.product-image { aspect-ratio: 1 / 1; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); background: var(--brand-card); box-shadow: var(--shadow-sm); }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 5%; transition: transform .45s ease; }
.product-card:hover .product-image img { transform: scale(1.045); }
.product-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; }
.product-badges b { padding: 4px 9px; border-radius: 999px; background: var(--brand-accent); color: var(--brand-button-text); font-size: 10px; letter-spacing: .06em; }
.product-view { position: absolute; inset: auto 12px 12px; z-index: 2; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: color-mix(in srgb, var(--brand-primary) 90%, transparent); color: var(--brand-primary-text); font-size: 12px; font-weight: 800; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.product-view .icon { width: 16px; }
.product-card:hover .product-view, .product-card:focus-within .product-view { opacity: 1; transform: translateY(0); }
.product-card-body { padding: 14px 3px 0; }
.product-category { display: block; margin-bottom: 4px; overflow: hidden; color: var(--brand-muted); font-size: 10px; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.product-name { min-height: 47px; display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-name:hover { color: var(--brand-accent); }
.product-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.price { color: var(--brand-accent); font-size: 18px; font-weight: 900; }
.product-meta del { color: var(--brand-muted); font-size: 11px; }
.image-placeholder { width: 100%; height: 100%; display: none; place-content: center; justify-items: center; gap: 8px; padding: 20px; color: var(--brand-muted); background: radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--brand-accent) 13%, transparent), transparent 31%), linear-gradient(135deg, var(--brand-secondary), var(--brand-card)); font-size: 12px; text-align: center; }
.image-placeholder .icon { width: 42px; height: 42px; margin-bottom: 3px; color: var(--brand-accent); }
.image-placeholder strong { color: var(--brand-text); font-size: 13px; letter-spacing: .06em; }
.image-placeholder small { max-width: 190px; color: var(--brand-muted); font-size: 10px; line-height: 1.5; }
.product-image > .image-placeholder { position: absolute; inset: 0; }
.product-image.is-missing > img { display: none; }
.product-image.is-missing > .image-placeholder { display: grid; }
.product-image.is-missing .product-view { opacity: 1; transform: none; }

.editorial { margin-block: clamp(50px, 8vw, 110px); min-height: 470px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand-primary); color: var(--brand-primary-text); }
.editorial-copy { display: grid; align-content: center; padding: clamp(38px, 6vw, 82px); }
.editorial-copy h2 { max-width: 570px; margin: 12px 0 20px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(31px, 4vw, 50px); line-height: 1.2; }
.editorial-copy p { max-width: 570px; margin: 0 0 28px; color: color-mix(in srgb, var(--brand-primary-text) 70%, transparent); }
.editorial-art { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--brand-secondary); color: var(--brand-primary); }
.editorial-art::before, .editorial-art::after { content: ""; width: 60%; aspect-ratio: 1; position: absolute; border: 1px solid color-mix(in srgb, var(--brand-accent) 30%, transparent); border-radius: 50%; }
.editorial-art::after { width: 38%; }
.editorial-art span { z-index: 2; font: 900 clamp(50px, 8vw, 110px)/1 Georgia, serif; letter-spacing: -.07em; }
.editorial-art i { width: 140%; height: 1px; position: absolute; background: var(--brand-accent); transform: rotate(-28deg); }
.editorial-art b { position: absolute; right: 9%; bottom: 9%; color: var(--brand-accent); font-size: 24px; }

.page-hero { padding-block: 55px 28px; }
.page-hero h1 { margin: 10px 0 8px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(35px, 5vw, 58px); line-height: 1.15; }
.page-hero > p, .result-count { color: var(--brand-muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; color: var(--brand-muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--brand-accent); }
.listing-toolbar { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.listing-toolbar > span { color: var(--brand-muted); font-size: 13px; }
.listing-toolbar form { display: flex; align-items: center; gap: 9px; }
.listing-toolbar label { font-size: 12px; }
.listing-toolbar select { min-height: 42px; padding: 0 35px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--brand-card); }
.category-hero{padding-bottom:12px}.category-hero h1{margin-bottom:4px}.category-section{padding-top:12px}.category-catalog-layout{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:28px;align-items:start}.category-sidebar{position:sticky;top:18px;padding-right:20px;border-right:1px solid var(--line)}.category-sidebar details>summary{padding:11px 0;font-size:17px;font-weight:850;cursor:pointer;list-style:none}.category-sidebar details>summary::-webkit-details-marker{display:none}.category-sidebar details>summary::after{content:'⌄';float:right}.category-sidebar-groups{display:grid;gap:4px}.category-sidebar-groups section{padding:10px 0;border-top:1px solid color-mix(in srgb,var(--line) 65%,transparent)}.category-sidebar-groups strong{display:block;margin-bottom:5px;font-size:14px}.category-sidebar-groups a{display:block;padding:6px 8px;border-radius:7px;color:var(--brand-muted);font-size:14px}.category-sidebar-groups a:hover,.category-sidebar-groups a[aria-current=page]{background:color-mix(in srgb,var(--brand-accent) 11%,var(--brand-card));color:var(--brand-text);font-weight:750}.category-toolbar{margin-bottom:20px;justify-content:flex-end}.category-toolbar>span,.category-toolbar select{font-size:14px}.category-results .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 12px}
.page-search { max-width: 760px; margin-top: 25px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.page-search input { min-width: 0; min-height: 51px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-card); outline: 0; }
.page-search input:focus { border-color: var(--brand-accent); }
.empty-state { padding: clamp(40px, 7vw, 80px) 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--brand-card); text-align: center; }
.empty-state h2, .empty-state h3 { margin: 0 0 7px; }
.empty-state p { margin: 0 0 20px; color: var(--brand-muted); }
.pagination { margin-top: 50px; display: flex; justify-content: center; gap: 6px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 50%; background: var(--brand-card); font-size: 12px; }
.pagination .active { border-color: var(--brand-accent); background: var(--brand-accent); color: var(--brand-button-text); }
.alert { margin-bottom: 18px; padding: 13px 16px; border-radius: var(--radius-sm); }
.alert.success { background: #e2f6eb; color: #176640; }
.alert.error { background: #ffe5eb; color: #8b1839; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); gap: clamp(35px, 6vw, 76px); align-items: start; }
.main-image-frame { width: 100%; aspect-ratio: 1; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--brand-card); box-shadow: var(--shadow-sm); }
.main-product-image { width: 100%; height: 100%; padding: 4%; object-fit: contain; }
.main-image-frame > .image-placeholder { position: absolute; inset: 0; }
.main-image-frame.is-missing > .main-product-image { display: none; }
.main-image-frame.is-missing > .image-placeholder { display: grid; }
.thumbnail-row { margin-top: 12px; display: flex; gap: 9px; overflow-x: auto; }
.gallery-thumb { flex: 0 0 78px; width: 78px; height: 78px; padding: 3px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--brand-card); cursor: pointer; }
.gallery-thumb.is-active { border-color: var(--brand-accent); box-shadow: inset 0 0 0 1px var(--brand-accent); }
.gallery-thumb img { width: 100%; height: 100%; border: 0; border-radius: 7px; object-fit: contain; }
.product-summary { position: sticky; top: 180px; }
.product-summary h1 { margin: 12px 0 18px; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(31px, 4vw, 49px); line-height: 1.2; }
.product-summary .lead { color: var(--brand-muted); }
.detail-price { margin: 24px 0; color: var(--brand-accent); font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.discount-note { padding: 10px 13px; border-radius: 10px; background: var(--brand-secondary); font-size: 13px; }
.add-cart-form { margin-top: 25px; display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 10px; }
.add-cart-form label { font-size: 12px; }
.add-cart-form input { min-height: 48px; width: 82px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-card); text-align: center; }
.add-cart-form select { grid-column: 1 / -1; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-card); color: var(--brand-text); }
.add-cart-form label[for="specification"] { grid-column: 1 / -1; font-weight: 800; }
.add-cart-form .button { width: 100%; grid-column: 1 / -1; }
.add-cart-form :disabled { cursor: not-allowed; opacity: .5; }
.reward-note { margin: 8px 0 0; color: var(--brand-muted); font-size: 12px; }
.reward-note strong { color: var(--brand-accent); }
.privacy-note, .account-notice { margin-top: 25px; display: grid; gap: 3px; padding: 17px; border-left: 3px solid var(--brand-accent); background: var(--brand-secondary); font-size: 13px; }
.privacy-note span, .account-notice span { color: var(--brand-muted); }
.product-description { padding-top: 20px; }
.legacy-richtext { overflow: hidden; }
.legacy-richtext img { height: auto !important; max-width: 100% !important; }
.legacy-richtext table { max-width: 100%; display: block; overflow-x: auto; }
.legacy-richtext iframe, .legacy-richtext object, .legacy-richtext embed { display: none !important; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 92px minmax(150px, 1fr) auto auto auto; align-items: center; gap: 15px; padding: 15px; border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--brand-card); }
.cart-thumb { width: 92px; aspect-ratio: 1; position: relative; overflow: hidden; border-radius: 12px; background: var(--brand-secondary); }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mini-image-placeholder { width: 100%; height: 100%; position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 3px; color: var(--brand-muted); background: linear-gradient(135deg, var(--brand-secondary), var(--brand-card)); text-align: center; }
.mini-image-placeholder .icon { width: 23px; color: var(--brand-accent); }
.mini-image-placeholder small { font-size: 8px; }
.cart-thumb.is-missing .mini-image-placeholder { display: grid; }
.cart-item > div:nth-child(2) { display: grid; }
.cart-item > div:nth-child(2) span { color: var(--brand-muted); font-size: 12px; }
.cart-item input { width: 66px; min-height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--brand-surface); }
.cart-item form button { border: 0; background: transparent; color: var(--brand-accent); font-size: 12px; }
.text-button { text-decoration: underline; }
.cart-summary { position: sticky; top: 180px; padding: 25px; border-radius: var(--radius); background: var(--brand-primary); color: var(--brand-primary-text); }
.cart-summary h2 { margin-top: 0; }
.cart-summary > div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--brand-primary-text) 18%, transparent); }
.cart-summary .cart-total { margin-bottom: 20px; font-size: 18px; }
.cart-summary .button { width: 100%; }
.cart-summary p { margin-bottom: 0; color: color-mix(in srgb, var(--brand-primary-text) 67%, transparent); font-size: 11px; }

.account-shell { min-height: 65vh; display: grid; place-items: center; padding-block: 65px; }
.account-card { width: min(650px, 100%); padding: clamp(32px, 6vw, 65px); border: 1px solid var(--soft-line); border-radius: var(--radius-lg); background: var(--brand-card); box-shadow: var(--shadow-lg); text-align: center; }
.account-card h1 { margin: 12px 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(34px, 5vw, 52px); }
.account-card > p { color: var(--brand-muted); }
.account-card .button { margin: 25px auto 0; }
.account-card-wide { width: min(760px, 100%); text-align: left; }
.member-form { margin-top: 24px; display: grid; gap: 16px; }
.member-form label { display: grid; gap: 7px; color: var(--brand-text); font-size: 13px; font-weight: 800; }
.member-form input[type="email"], .member-form input[type="text"], .member-form input[type="password"] { min-height: 49px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--brand-surface); color: var(--brand-text); }
.member-form label small { color: var(--brand-muted); font-weight: 500; }
.member-form .button { width: 100%; margin: 4px 0 0; }
.member-check { grid-template-columns: auto 1fr; align-items: start; }
.member-check input { margin-top: 3px; }
.member-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.account-switch { text-align: center; }
.account-switch a { color: var(--brand-accent); font-weight: 800; text-decoration: underline; }
.member-summary { margin-top: 25px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.member-summary > div { padding: 18px; border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--brand-surface); }
.member-summary span, .member-summary strong { display: block; }
.member-summary span { color: var(--brand-muted); font-size: 11px; }
.member-summary strong { margin-top: 6px; overflow-wrap: anywhere; }
.member-nav { width: 100%; display: flex; gap: 8px; margin: 22px 0; overflow-x: auto; scrollbar-width: none; }
.member-nav::-webkit-scrollbar { display: none; }
.member-nav a { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-card); color: var(--brand-muted); font-size: 12px; font-weight: 800; }
.member-nav a:hover, .member-nav a[aria-current="page"] { border-color: var(--brand-accent); background: var(--brand-accent); color: var(--brand-button-text); }
.member-action-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.member-action-grid a { display: grid; gap: 5px; padding: 17px; border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--brand-surface); }
.member-action-grid a:hover { border-color: var(--brand-accent); transform: translateY(-2px); }
.member-action-grid strong, .member-action-grid span { display: block; }
.member-action-grid span { color: var(--brand-muted); font-size: 11px; }
.member-form input:disabled { cursor: not-allowed; opacity: .68; }
.member-page-hero .member-nav, .service-hero .member-nav { justify-content: center; }
.member-favorites { padding-top: 15px; }
.favorite-item { min-width: 0; position: relative; }
.favorite-item > form { margin-top: 10px; }
.favorite-remove { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-card); color: var(--brand-muted); font-size: 12px; font-weight: 800; }
.favorite-remove:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.favorite-remove .icon { width: 16px; }
.product-member-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.product-member-actions form { min-width: 0; }
.product-member-actions .button { width: 100%; min-height: 44px; margin: 0; }
.member-orders-layout { grid-template-columns: 1fr; }
.cart-spec { display: block; margin: 4px 0; color: var(--brand-muted); }
.home-image-banner img { width: 100%; max-height: 650px; display: block; border-radius: var(--radius-lg); object-fit: cover; }
.home-text-section { margin-block: 72px; }

.service-hero { max-width: 980px; text-align: center; }
.service-hero .breadcrumbs { justify-content: center; }
.content-tabs { display: flex; justify-content: center; gap: 8px; padding-block: 16px; overflow-x: auto; scrollbar-width: none; }
.content-tabs::-webkit-scrollbar { display: none; }
.content-tabs a { flex: 0 0 auto; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--brand-card); color: var(--brand-muted); font-size: 12px; font-weight: 800; }
.content-tabs a:hover, .content-tabs a[aria-current="page"] { border-color: var(--brand-accent); background: var(--brand-accent); color: var(--brand-button-text); }
.content-list { display: grid; border-top: 1px solid var(--line); }
.content-list-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 23px 10px; border-bottom: 1px solid var(--line); }
.content-list-item time, .content-list-item span { color: var(--brand-muted); font-size: 12px; }
.content-list-item strong { font-size: 16px; }
.content-list-item:hover strong, .content-list-item:hover span { color: var(--brand-accent); }
.article-page { max-width: 900px; padding-block: 55px 90px; }
.article-page header { padding-bottom: 30px; border-bottom: 1px solid var(--line); text-align: center; }
.article-page h1 { margin: 12px auto; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(34px, 5vw, 56px); line-height: 1.25; text-wrap: balance; }
.article-page time { color: var(--brand-muted); font-size: 12px; }
.article-body { padding-block: 38px; font-size: 16px; line-height: 1.9; }
.article-page footer { padding-top: 28px; border-top: 1px solid var(--line); }
.button-secondary { border: 1px solid var(--line); background: var(--brand-card); color: var(--brand-text); box-shadow: none; }
.form-page { max-width: 880px; padding-block: 15px 90px; }
.service-layout { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); gap: 28px; align-items: start; padding-block: 20px 90px; }
.service-form { display: grid; gap: 15px; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--brand-card); box-shadow: var(--shadow-sm); }
.service-form-wide { width: 100%; }
.service-form h2 { margin: 0 0 5px; }
.service-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; }
.service-form input, .service-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--brand-surface); resize: vertical; }
.service-form input:focus, .service-form textarea:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 12%, transparent); }
.service-form small { color: var(--brand-muted); }
.service-form .button { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.order-results, .guestbook-list { display: grid; gap: 16px; }
.order-card, .guestbook-card { overflow: hidden; border: 1px solid var(--soft-line); border-radius: var(--radius); background: var(--brand-card); box-shadow: var(--shadow-sm); }
.order-card > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 22px; background: var(--brand-secondary); }
.order-card > header div { display: grid; }
.order-card > header span, .order-card dt { color: var(--brand-muted); font-size: 10px; }
.order-card > header b { color: var(--brand-accent); font-size: 12px; }
.order-card dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 18px 22px; border-bottom: 1px solid var(--soft-line); }
.order-card dl div { min-width: 0; }
.order-card dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 800; }
.order-items { margin: 0; padding: 10px 22px; list-style: none; }
.order-items li, .order-card > footer { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; }
.order-items li { color: var(--brand-muted); font-size: 12px; }
.order-items b { flex: 0 0 auto; color: var(--brand-text); }
.order-card > footer { padding: 16px 22px; border-top: 1px solid var(--soft-line); }
.order-card > footer strong { color: var(--brand-accent); }
.guestbook-card { padding: 23px; }
.guestbook-card header { display: flex; gap: 13px; align-items: center; }
.guestbook-card header > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-accent); color: var(--brand-button-text); font-weight: 900; }
.guestbook-card header div { display: grid; }
.guestbook-card header small { color: var(--brand-muted); }
.guestbook-reply { margin-top: 18px; padding: 17px; border-left: 3px solid var(--brand-accent); background: var(--brand-secondary); }
.guestbook-reply p { margin-bottom: 0; }
.brand-filter { margin-bottom: 25px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--brand-card); }
.brand-filter summary { cursor: pointer; font-weight: 850; }
.brand-filter div { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 14px; }
.brand-filter a { padding: 6px 10px; border-radius: 999px; background: var(--brand-secondary); color: var(--brand-muted); font-size: 11px; }
.brand-filter a:hover, .brand-filter a[aria-current="page"] { background: var(--brand-accent); color: var(--brand-button-text); }
.ranked-product { position: relative; min-width: 0; }
.rank-badge { position: absolute; top: 10px; right: 10px; z-index: 4; min-width: 34px; padding: 5px 8px; border-radius: 999px; background: var(--brand-primary); color: var(--brand-primary-text); font-size: 11px; font-weight: 900; text-align: center; box-shadow: var(--shadow-sm); }

.age-body { min-height: 100svh; display: grid; place-items: center; padding: 28px; isolation: isolate; position: relative; background: var(--brand-primary); }
.age-background { width: 100%; height: 100%; position: fixed; inset: 0; z-index: -2; object-fit: cover; object-position: center; opacity: .48; }
.age-body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 92%, transparent), color-mix(in srgb, var(--brand-accent) 48%, transparent)); }
.age-card { width: min(580px, 100%); padding: clamp(35px, 7vw, 70px); border: 1px solid color-mix(in srgb, #fff 22%, transparent); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--brand-card) 94%, transparent); color: var(--brand-text); box-shadow: var(--shadow-lg); text-align: center; backdrop-filter: blur(18px); }
.age-logo { max-width: 190px; max-height: 70px; margin: 0 auto 28px; object-fit: contain; }
.age-brand-text { display: block; margin-bottom: 25px; color: var(--brand-primary); font: 900 30px/1 Georgia, serif; }
.age-card h1 { margin: 13px 0; font-family: Georgia, "Noto Serif TC", serif; font-size: clamp(34px, 6vw, 52px); line-height: 1.2; }
.age-card > p { color: var(--brand-muted); }
.age-card form { margin-top: 27px; }
.age-card .button { width: 100%; }
.leave-link { display: inline-block; margin-top: 20px; color: var(--brand-muted); font-size: 12px; text-decoration: underline; }

.site-footer { margin-top: 40px; padding-top: 66px; background: var(--brand-primary); color: var(--brand-primary-text); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 45px; }
.footer-grid section { display: grid; align-content: start; gap: 9px; }
.footer-grid strong { margin-bottom: 6px; font-size: 14px; }
.footer-brand strong { font: 900 30px/1 Georgia, serif; }
.footer-preferences{margin-top:18px;display:flex;flex-wrap:wrap;gap:9px}.footer-preferences label,.footer-preferences a{min-height:40px;padding:7px 10px;display:flex;align-items:center;gap:7px;border:1px solid color-mix(in srgb,var(--brand-primary-text) 28%,transparent);border-radius:999px;background:color-mix(in srgb,var(--brand-primary-text) 8%,transparent);color:var(--brand-primary-text);font-size:13px}.footer-preferences select{max-width:78px;border:0;background:transparent;color:inherit;font:inherit;font-weight:750}.footer-preferences select option{color:#211b1f;background:#fff}.footer-preferences .preference-icon{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--brand-primary-text) 16%,transparent);font-weight:850}
.footer-grid p, .footer-grid a, .footer-grid span { margin: 0; color: color-mix(in srgb, var(--brand-primary-text) 67%, transparent); font-size: 12px; }
.footer-grid a:hover { color: var(--brand-primary-text); }
.copyright { margin-top: 50px; padding-block: 20px; border-top: 1px solid color-mix(in srgb, var(--brand-primary-text) 14%, transparent); color: color-mix(in srgb, var(--brand-primary-text) 53%, transparent); font-size: 10px; letter-spacing: .08em; }
.page-scrim { position: fixed; inset: 0; z-index: 49; background: rgba(15, 12, 14, .5); }

@media (max-width: 1050px) {
    .header-main { grid-template-columns: minmax(140px, 190px) 1fr auto; gap: 18px; }
    .header-actions { gap: 12px; }
    .nav-inner a { padding-inline: 13px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid > div { border-bottom: 1px solid var(--soft-line); }
    .service-grid > div:nth-child(3) { border-left: 1px solid var(--soft-line); }
    .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 25px; }
}

@media (max-width: 800px) {
    :root { --shell: min(100% - 28px, 1240px); }
    html { scroll-padding-top: 145px; }
    body { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
    .mobile-only { display: grid; }
    .mobile-search-button { display: grid; }
    .notice-inner { grid-template-columns: auto 1fr; }
    .notice-trust { display: none; }
    .header-main { min-height: 68px; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; }
    .brand { justify-self: center; }
    .brand span { font-size: 26px; }
    .brand small { display: none; }
    .brand img { max-width: 155px; max-height: 50px; object-position: center; }
    .header-actions { gap: 7px; }
    .icon-action { min-width: 34px; }
    .icon-action span { display: none; }
    .header-actions .icon-action[href^="/member"] { display: none; }
    .header-search { height: 62px; position: fixed; z-index: 61; top: 140px; left: 14px; right: 14px; width: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); background: var(--brand-card); box-shadow: var(--shadow-lg); transition: opacity .2s, transform .2s, visibility .2s; }
    body.search-open .header-search { opacity: 1; visibility: visible; transform: translateY(0); }
    .site-nav { width: min(88vw, 360px); position: fixed; z-index: 62; top: 0; bottom: 0; left: 0; display: block; padding: 24px 18px calc(25px + env(safe-area-inset-bottom)); overflow-y: auto; border: 0; box-shadow: var(--shadow-lg); transform: translateX(-105%); transition: transform .28s ease; }
    .site-nav::before { content: "商品分類"; display: block; margin: 8px 10px 18px; color: var(--brand-accent); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
    body.nav-open .site-nav { transform: translateX(0); }
    .nav-inner { width: 100%; min-height: auto; display: grid; align-content: start; }
    .nav-inner a { min-height: 48px; justify-content: flex-start; padding: 0 10px; border-bottom: 1px solid var(--soft-line); }
    .nav-home span { display: inline; margin-left: 9px; }
    .mobile-bottom-nav { min-height: 64px; position: fixed; z-index: 58; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--soft-line); background: var(--brand-header); color: var(--brand-header-text); box-shadow: 0 -8px 30px rgba(0,0,0,.08); }
    .mobile-bottom-nav a, .mobile-bottom-nav button { min-width: 0; position: relative; display: grid; place-items: center; align-content: center; gap: 2px; padding: 6px 2px; border: 0; background: transparent; font-size: 10px; }
    .mobile-bottom-nav .icon { width: 21px; }
    .bottom-cart b { top: 5px; right: calc(50% - 24px); }
    .home-hero { height: 500px; min-height: 500px; }
    .hero-slide { align-items: end; }
    .hero-background { object-position: center top; }
    .hero-slide::after { background: linear-gradient(0deg, var(--brand-surface) 4%, color-mix(in srgb, var(--brand-surface) 91%, transparent) 38%, color-mix(in srgb, var(--brand-surface) 22%, transparent) 74%, transparent 100%); }
    .hero-content { padding-bottom: 87px; }
    .hero-content h1 { max-width: 620px; font-size: clamp(38px, 9vw, 58px); }
    .hero-content p { max-width: 530px; margin-bottom: 24px; font-size: 15px; }
    .hero-controls { bottom: 27px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial { grid-template-columns: 1fr; }
    .editorial-art { min-height: 330px; order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .service-layout { grid-template-columns: 1fr; }
    .service-nav-inner { justify-content: flex-start; }
    .product-summary { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .category-catalog-layout{grid-template-columns:1fr;gap:14px}.category-sidebar{position:static;padding:0;border-right:0;border-bottom:1px solid var(--line)}.category-sidebar-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;max-height:55vh;overflow:auto}.category-results .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-toolbar{align-items:center;flex-direction:row;justify-content:space-between}
}

@media (max-width: 560px) {
    :root { --shell: calc(100% - 22px); --radius: 15px; --radius-lg: 22px; }
    .notice-bar { min-height: 32px; font-size: 10px; }
    .notice-inner { gap: 9px; }
    .notice-label { padding-right: 9px; }
    .site-header { position: sticky; }
    .header-main { min-height: 62px; }
    .brand span { font-size: 23px; }
    .brand img { max-width: 132px; max-height: 43px; }
    .header-search { top: 134px; }
    .home-hero { height: 440px; min-height: 440px; }
    .hero-content { padding-bottom: 72px; }
    .hero-content h1 { margin-block: 10px 14px; font-size: 35px; }
    .hero-content p { display: -webkit-box; overflow: hidden; font-size: 13px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .hero-content .button { min-height: 44px; padding-inline: 20px; font-size: 13px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid > div { min-height: 83px; justify-content: flex-start; gap: 9px; padding: 13px 10px; }
    .service-grid .icon { width: 24px; height: 24px; }
    .service-grid strong { font-size: 12px; }
    .service-grid small { font-size: 9px; }
    .section { padding-block: 56px; }
    .section + .section { padding-top: 10px; }
    .section-heading { margin-bottom: 23px; align-items: flex-start; }
    .section-heading h2 { font-size: 31px; }
    .section-heading p { font-size: 12px; }
    .section-link { margin-top: 8px; font-size: 0; }
    .section-link .icon { width: 21px; }
    .category-grid { gap: 9px; }
    .category-card { min-height: 123px; padding: 15px; }
    .category-icon { top: 10px; right: 12px; font-size: 35px; }
    .category-card strong { font-size: 14px; }
    .category-card > .icon { right: 12px; bottom: 14px; width: 16px; }
    .product-grid { gap: 25px 9px; }
    .product-image { border-radius: 13px; }
    .product-view { display: none; }
    .product-badges { top: 7px; left: 7px; }
    .product-badges b { padding: 3px 6px; font-size: 8px; }
    .product-card-body { padding-top: 9px; }
    .product-category { font-size: 9px; }
    .product-name { min-height: 42px; font-size: 12px; }
    .price { font-size: 15px; }
    .product-meta del { font-size: 9px; }
    .editorial { margin-block: 55px; }
    .editorial-art { min-height: 230px; }
    .editorial-copy { padding: 30px 24px 38px; }
    .editorial-copy h2 { font-size: 30px; }
    .editorial-copy p { font-size: 13px; }
    .page-hero { padding-block: 38px 12px; }
    .page-search { grid-template-columns: 1fr; }
    .page-search .button { width: 100%; }
    .listing-toolbar { align-items: flex-start; flex-direction: column; }
    .category-sidebar-groups{grid-template-columns:1fr}.category-toolbar{align-items:center;flex-direction:row;gap:10px}.category-toolbar select{max-width:155px}.footer-preferences{align-items:stretch;flex-direction:column}.footer-preferences label,.footer-preferences a{width:max-content}
    .add-cart-form { grid-template-columns: minmax(0, 1fr) 82px; }
    .add-cart-form .button { grid-column: 1 / -1; }
    .cart-item { grid-template-columns: 66px 1fr auto; gap: 9px; }
    .cart-thumb { width: 66px; }
    .cart-item > form:first-of-type { grid-column: 2; }
    .cart-item > strong { grid-column: 3; grid-row: 2; font-size: 12px; }
    .cart-item > form:last-of-type { grid-column: 2; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-footer { padding-top: 48px; }
    .age-body { padding: 14px; }
    .age-card { padding: 34px 24px; }
    .age-card h1 { font-size: clamp(30px, 9vw, 38px); overflow-wrap: anywhere; text-wrap: balance; }
    .category-icon.has-image { width: 54px; height: 54px; border-radius: 15px; }
    .member-summary { grid-template-columns: 1fr; }
    .member-action-grid { grid-template-columns: 1fr; }
    .member-nav { justify-content: flex-start; }
    .product-member-actions { grid-template-columns: 1fr; }
    .service-nav a { padding-inline: 13px; font-size: 11px; }
    .content-list-item { grid-template-columns: 1fr auto; gap: 6px 12px; padding-block: 18px; }
    .content-list-item time { grid-column: 1 / -1; }
    .content-list-item strong { font-size: 14px; }
    .content-list-item span { font-size: 0; }
    .content-list-item span::after { content: "→"; font-size: 14px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .span-2 { grid-column: auto; }
    .order-card dl { grid-template-columns: 1fr 1fr; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Product description tables created in the admin editor. */
.legacy-richtext table{border-collapse:collapse;width:auto;max-width:100%;margin:14px 0}
.legacy-richtext table td,.legacy-richtext table th{border:1px solid #a8b7bf;padding:8px 10px;min-width:42px;vertical-align:top}
/* v1.27a: compact, predictable media widths on mobile and homepage categories */
.product-detail, .product-gallery, .product-summary, .product-content-layout, .product-tab-panels,
.product-tab-panel, .product-description, .legacy-richtext { min-width:0; max-width:100%; }
.product-tab-panel .legacy-richtext { overflow-x:auto; overflow-y:hidden; }
.legacy-richtext img, .product-detail-photo-list img, .home-collection-richtext img {
  display:block; width:auto; max-width:100%!important; height:auto!important; object-fit:contain;
}
.legacy-richtext :is(div,figure,p,picture) { max-width:100%!important; box-sizing:border-box; overflow-wrap:anywhere; }
.legacy-richtext table { width:max-content; max-width:100%!important; }
.product-detail-photo-list { display:grid; justify-items:center; gap:16px; max-width:100%; overflow:hidden; margin-top:24px; }
.product-detail-photo-list img { max-width:min(100%,900px)!important; }
.home-hero { width:var(--shell); max-width:100%; height:380px; min-height:0; margin:0 auto; border-radius:var(--radius); }
.home-hero .hero-slides { overflow:hidden; border-radius:inherit; }
.home-hero .hero-content { width:100%; padding-inline:clamp(16px,4vw,52px); }
.category-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.category-grid .category-card { min-width:0; min-height:0; display:flex; flex-direction:column; align-items:center; gap:10px; padding:10px; border:0; border-radius:0; box-shadow:none; background:transparent; text-align:center; }
.category-grid .category-icon { position:static; width:clamp(75px,12vw,150px); height:clamp(75px,12vw,150px); flex:none; display:grid; place-items:center; overflow:hidden; padding:8px; border:1px solid var(--soft-line); border-radius:50%; background:var(--brand-card); color:var(--brand-text); font-size:16px; font-weight:700; line-height:1.3; }
.category-grid .category-icon.has-image { width:clamp(75px,12vw,150px); height:clamp(75px,12vw,150px); border-radius:50%; }
.category-grid .category-icon img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.category-grid .category-icon span { overflow-wrap:anywhere; }
.category-grid .category-card strong { max-width:100%; font-size:15px; }
.category-grid .category-card small, .category-grid .category-card>.icon { display:none; }
.content-list-item .blog-list-excerpt { grid-column:2; margin:0; max-width:800px; color:var(--brand-muted); line-height:1.65; font-size:14px; }
.home-collection-richtext { max-width:850px; margin-top:10px; }
.home-service-intro { padding:16px 0 4px; text-align:center; }
.home-service-intro h2 { margin:2px 0; font-size:20px; }
.home-service-intro p { margin:0; color:var(--brand-muted); }
@media(max-width:800px) {
  .category-sidebar { display:none!important; }
  .category-catalog-layout { display:block; }
  .home-hero { height:340px; }
  .product-detail { grid-template-columns:minmax(0,1fr); }
  .product-gallery, .main-image-frame, .thumbnail-row { min-width:0; max-width:100%; }
  .content-list-item .blog-list-excerpt { grid-column:1/-1; }
}
@media(max-width:540px) {
  .home-hero { height:300px; }
  .category-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; }
  .category-grid .category-card { padding:4px 1px; }
  .category-grid .category-icon, .category-grid .category-icon.has-image { width:min(18vw,86px); height:min(18vw,86px); font-size:11px; }
  .category-grid .category-card strong { font-size:11px; }
}
