/* 如初金坊前台樣式：首頁區塊、頁首、頁尾、商品卡片、商店頁。 */
:root {
	--rg-ink: #1a1714;
	--rg-text: #3d3935;
	--rg-muted: #8f8b85;
	--rg-gold: #a08a5f;
	--rg-gold-soft: #d8c9aa;
	--rg-cream: #f7f3ef;
	--rg-hero: #ebe6e1;
	--rg-line: #e7e1d9;
	--rg-card: #ffffff;
	--rg-black: #0b0b0b;
	--rg-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
	--rg-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	--rg-radius: 14px;
	--rg-wrap: 1240px;
	--rg-gutter: clamp(16px, 4vw, 48px);
}

.rg-home, .rg-header, .rg-footer, .rg-shop, .rg-wishlist { font-family: var(--rg-sans); color: var(--rg-text); -webkit-font-smoothing: antialiased; }
.rg-home *, .rg-header *, .rg-footer * { box-sizing: border-box; }
:where(.rg-home, .rg-header, .rg-footer) img { max-width: 100%; height: auto; display: block; }
.rg-site .screen-reader-text, .rg-header .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rg-icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 按鈕、連結、標題 ---------- */
.rg-btn { display: inline-flex; align-items: center; gap: .6em; padding: .8em 1.9em; border-radius: 999px; font-family: var(--rg-serif); font-size: 15px; letter-spacing: .22em; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.rg-btn .rg-icon { width: 1.1em; }
.rg-btn--outline { border: 1px solid #4a4542; color: var(--rg-ink); background: transparent; }
.rg-btn--outline:hover, .rg-btn--outline:focus-visible { background: var(--rg-ink); color: #fff; border-color: var(--rg-ink); }
.rg-btn--dark { border: 1px solid var(--rg-ink); background: var(--rg-ink); color: #fff; cursor: pointer; }
.rg-link { display: inline-flex; align-items: center; gap: .5em; color: var(--rg-ink); text-decoration: none; font-size: 14px; letter-spacing: .12em; }
.rg-link .rg-icon { color: var(--rg-gold); transition: transform .25s; }
.rg-link:hover .rg-icon { transform: translateX(4px); }
.rg-link--underline { padding-bottom: .5em; border-bottom: 1px solid var(--rg-line); }

.rg-section { padding: clamp(56px, 7vw, 104px) var(--rg-gutter); }
.rg-head { text-align: center; margin: 0 auto clamp(28px, 3.6vw, 52px); max-width: 720px; }
.rg-eyebrow { margin: 0 0 .9em; font-family: var(--rg-serif); font-size: clamp(12px, 1.05vw, 15px); letter-spacing: .22em; color: var(--rg-gold); text-transform: uppercase; }
.rg-eyebrow--small { font-size: 12px; letter-spacing: .28em; }
.rg-rule { display: block; width: 56px; height: 1px; margin: 0 auto 1.4em; background: var(--rg-gold-soft); }
.rg-title { margin: 0; font-family: var(--rg-serif); font-weight: 600; font-size: clamp(28px, 3.5vw, 50px); line-height: 1.35; letter-spacing: .12em; color: var(--rg-ink); }
.rg-sub { margin: .9em 0 0; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.8; letter-spacing: .1em; color: var(--rg-muted); }

/* ---------- 頁首 ---------- */
.rg-header { position: relative; z-index: 50; background: #fff; }
.rg-topbar { display: flex; justify-content: flex-end; padding: 8px var(--rg-gutter) 0; }
.rg-topbar__login { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--rg-ink); text-decoration: none; letter-spacing: .08em; }
.rg-topbar__login .rg-icon { width: 15px; height: 15px; }
.rg-header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px var(--rg-gutter) 22px; }
.rg-header__menu { justify-self: start; white-space: nowrap; display: inline-flex; align-items: center; gap: 14px; padding: 6px 0; border: 0; background: none; color: var(--rg-ink); font: 500 17px/1 var(--rg-sans); letter-spacing: .12em; cursor: pointer; }
.rg-header__menu .rg-icon { width: 34px; height: 34px; stroke-width: 1.3; }
.rg-logo { color: var(--rg-ink); text-decoration: none; text-align: center; }
.rg-logo__text { font-family: var(--rg-serif); font-weight: 500; font-size: clamp(24px, 2.9vw, 42px); letter-spacing: .14em; white-space: nowrap; }
.rg-logo__img { max-height: 56px; width: auto; margin: 0 auto; }
.rg-header__tools { justify-self: end; display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); }
.rg-tool { position: relative; display: inline-flex; padding: 4px; border: 0; background: none; color: var(--rg-ink); cursor: pointer; text-decoration: none; }
.rg-tool .rg-icon { width: 28px; height: 28px; }
.rg-tool--account { display: none; }
.rg-badge { position: absolute; right: -6px; bottom: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--rg-ink); color: #fff; font: 500 11px/18px var(--rg-sans); text-align: center; }
.rg-search { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--rg-line); box-shadow: 0 18px 40px rgba(26, 23, 20, .08); padding: 20px var(--rg-gutter); }
.rg-search__form { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; align-items: center; }
.rg-search__form input[type="search"] { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 1px solid var(--rg-line); border-radius: 999px; font: 15px var(--rg-sans); }
.rg-search__form .rg-btn { padding: .75em 1.6em; }
.rg-search__close, .rg-drawer__close { border: 0; background: none; padding: 6px; color: var(--rg-ink); cursor: pointer; }
.rg-drawer { position: fixed; inset: 0; z-index: 100; }
.rg-drawer__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 11, .35); }
.rg-drawer__panel { position: relative; z-index: 1; width: min(360px, 86vw); height: 100%; overflow-y: auto; background: #fff; padding: 22px 28px 40px; animation: rg-slide .28s ease-out; }
.rg-drawer__close { position: absolute; right: 14px; top: 14px; }
.rg-drawer__brand { margin: 8px 0 28px; font-family: var(--rg-serif); letter-spacing: .14em; font-size: 20px; color: var(--rg-ink); }
.rg-drawer__menu { list-style: none; margin: 0; padding: 0; }
.rg-drawer__menu li { border-bottom: 1px solid var(--rg-line); }
.rg-drawer__menu a { display: block; padding: 16px 0; color: var(--rg-ink); text-decoration: none; font-size: 16px; letter-spacing: .12em; }
.rg-drawer__menu .sub-menu { list-style: none; padding: 0 0 10px 14px; margin: 0; }
.rg-drawer__menu .sub-menu li { border: 0; }
.rg-drawer__menu .sub-menu a { padding: 8px 0; font-size: 14px; color: var(--rg-text); }
@keyframes rg-slide { from { transform: translateX(-100%); } to { transform: none; } }
body.rg-locked { overflow: hidden; }

/* ---------- 主視覺 ---------- */
.rg-hero { position: relative; margin: 0 12px; min-height: clamp(320px, 36vw, 560px); background: var(--rg-hero); overflow: hidden; display: flex; align-items: center; }
.rg-hero__media, .rg-hero__media picture { position: absolute; inset: 0; }
.rg-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.rg-hero--noimage { background: linear-gradient(110deg, #e9e3dc 0%, #f4f0eb 60%, #ebe6e1 100%); }
.rg-hero__inner { position: relative; width: 100%; padding: 48px 1.4vw 48px 0; }
.rg-hero__copy { margin-left: 67.5%; }
.rg-hero__title { white-space: nowrap; }
.rg-hero__eyebrow { margin: 0 0 1.1em; font-size: clamp(12px, 1vw, 15px); letter-spacing: .3em; color: var(--rg-text); }
.rg-hero__title { margin: 0 0 .55em; font-family: var(--rg-serif); font-weight: 600; font-size: clamp(26px, 3vw, 44px); line-height: 1.5; letter-spacing: .06em; color: var(--rg-ink); }
.rg-hero__text { margin: 0 0 1.9em; font-family: var(--rg-serif); font-size: clamp(14px, 1.25vw, 18px); line-height: 1.9; letter-spacing: .2em; color: var(--rg-text); }

/* ---------- 精選分類（遮罩＋壓字） ---------- */
.rg-coll-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 38px); max-width: 1200px; margin: 0 auto; }
.rg-collections { padding-top: clamp(40px, 3.8vw, 56px); }
.rg-coll { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--rg-cream); color: #fff; text-decoration: none; isolation: isolate; }
.rg-coll__media, .rg-coll__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rg-coll__img { object-fit: cover; object-position: 50% 42%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.rg-coll__mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 12, 0) 48%, rgba(20, 16, 12, .38) 70%, rgba(20, 16, 12, .74) 100%); transition: background .4s; }
.rg-coll__text { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.2vw, 30px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rg-coll__name { font-family: var(--rg-serif); font-weight: 600; font-size: clamp(20px, 1.9vw, 28px); letter-spacing: .16em; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.rg-coll__more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .2em; opacity: .9; }
.rg-coll:hover .rg-coll__img, .rg-coll:focus-visible .rg-coll__img { transform: scale(1.05); }
.rg-coll:hover .rg-coll__mask, .rg-coll:focus-visible .rg-coll__mask { background: linear-gradient(180deg, rgba(20, 16, 12, .1) 30%, rgba(20, 16, 12, .48) 68%, rgba(20, 16, 12, .8) 100%); }

/* ---------- 商品卡片 ---------- */
.rg-new { padding-left: 12px; padding-right: 12px; padding-top: 0; }
.rg-collections { padding-bottom: clamp(48px, 6vw, 96px); }
.rg-new .rg-title { font-size: clamp(24px, 2.1vw, 30px); font-weight: 500; }
.rg-new .rg-head { margin-bottom: clamp(24px, 2.6vw, 40px); }
.rg-new__inner { background: var(--rg-cream); padding: clamp(44px, 5vw, 72px) clamp(16px, 2.2vw, 32px) clamp(40px, 4.4vw, 64px); }
.rg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.7vw, 24px); max-width: 1400px; margin: 0 auto; }
.rg-card { position: relative; display: flex; flex-direction: column; background: var(--rg-card); border-radius: var(--rg-radius); overflow: hidden; transition: box-shadow .3s, transform .3s; }
.rg-card:hover { box-shadow: 0 16px 36px rgba(26, 23, 20, .08); transform: translateY(-2px); }
.rg-card__media { display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.rg-card__media img, .rg-card__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rg-card__body { padding: 6px 16px 26px; text-align: center; }
.rg-card__title { margin: 0 0 .9em; font-family: var(--rg-serif); font-weight: 500; font-size: clamp(13px, 1vw, 15px); line-height: 1.6; letter-spacing: .08em; }
.rg-card__title a { color: var(--rg-ink); text-decoration: none; }
.rg-card__price { margin: 0; font-family: var(--rg-serif); font-size: clamp(14px, 1.1vw, 17px); letter-spacing: .06em; color: #6f6b66; }
.rg-card__price del { color: var(--rg-muted); margin-right: .4em; font-size: .88em; }
.rg-card__price ins { text-decoration: none; color: var(--rg-ink); }
.rg-wish { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .86); color: var(--rg-ink); cursor: pointer; transition: color .2s, background .2s; }
.rg-wish .rg-icon { width: 20px; height: 20px; }
.rg-wish[aria-pressed="true"] { color: #b4553c; }
.rg-wish[aria-pressed="true"] .rg-icon { fill: currentColor; }
.rg-new__more { margin: clamp(28px, 3vw, 44px) 0 0; text-align: center; }

/* ---------- 品牌故事 ---------- */
.rg-section.rg-brand { padding-top: clamp(40px, 5vw, 76px); }
.rg-brand { display: grid; grid-template-columns: 1fr minmax(0, .82fr); align-items: center; gap: clamp(32px, 7vw, 120px); max-width: 1160px; margin: 0 auto; }
.rg-brand__copy { padding-left: clamp(0px, 3vw, 40px); }
.rg-brand__title { margin: 0 0 1.1em; font-family: var(--rg-serif); font-weight: 600; font-size: clamp(22px, 2vw, 30px); line-height: 1.75; letter-spacing: .1em; color: var(--rg-ink); }
.rg-brand__text { margin: 0 0 1.6em; font-size: 14px; line-height: 2.1; letter-spacing: .08em; color: var(--rg-text); max-width: 34em; }
.rg-brand__lines { margin: 0 0 2em; font-family: var(--rg-serif); font-size: 14px; line-height: 2.1; letter-spacing: .14em; color: var(--rg-text); }
.rg-brand__media { aspect-ratio: 13 / 14; overflow: hidden; background: var(--rg-cream); max-width: 400px; width: 100%; justify-self: center; }
.rg-brand__img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 頁尾 ---------- */
.rg-footer { background: var(--rg-black); color: #bdb8b1; padding: clamp(48px, 5vw, 72px) var(--rg-gutter) 28px; }
.rg-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1380px; margin: 0 auto; }
.rg-footer__title { margin: 0 0 18px; font: 500 16px/1.4 var(--rg-sans); letter-spacing: .1em; color: #fff; }
.rg-footer__links { list-style: none; margin: 0; padding: 0; }
.rg-footer__links li { margin: 0 0 11px; }
.rg-footer__links a { color: #bdb8b1; text-decoration: none; font-size: 14px; letter-spacing: .06em; }
.rg-footer__links a:hover { color: #fff; }
.rg-footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; max-width: 1380px; margin: clamp(40px, 4vw, 64px) auto 0; padding-top: 28px; border-top: 1px solid #2a2826; }
.rg-footer__copy { margin: 0; font-size: 12px; line-height: 2; letter-spacing: .06em; color: #9b958d; }
.rg-footer__logo { color: #d7c29a; text-decoration: none; }
.rg-footer__logo .rg-logo__text { font-size: 20px; letter-spacing: .2em; }
.rg-footer__logo .rg-logo__img { max-height: 72px; }
.rg-footer__social { justify-self: end; display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.rg-footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #77716a; border-radius: 50%; color: #e9e4dc; }
.rg-footer__social a:hover { border-color: #fff; color: #fff; }

/* ---------- 商品頁的金重 ---------- */
.ruchu-weight { margin: .4em 0 1.2em; font-family: var(--rg-serif); font-size: 15px; letter-spacing: .1em; color: var(--rg-text); }
.ruchu-weight__value { color: var(--rg-ink); }

/* ---------- 追蹤清單 ---------- */
.rg-wishlist__empty { text-align: center; color: var(--rg-muted); padding: 48px 0; letter-spacing: .08em; }

/* ---------- 商店、分類頁 ---------- */
.rg-site { font-family: var(--rg-sans); color: var(--rg-text); }
.rg-site .woocommerce-products-header, .rg-site .woocommerce-breadcrumb { display: none; }
.rg-archive-head { margin-top: clamp(32px, 4vw, 56px); padding: 0 16px; }
.rg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto clamp(28px, 3vw, 44px); padding: 0 16px; }
.rg-tabs a { padding: .55em 1.3em; border: 1px solid var(--rg-line); border-radius: 999px; color: var(--rg-text); text-decoration: none; font-size: 14px; letter-spacing: .12em; background: #fff; }
.rg-tabs a[aria-current="page"], .rg-tabs a:hover { border-color: var(--rg-ink); color: #fff; background: var(--rg-ink); }
.rg-site .woocommerce-result-count { font-size: 13px; color: var(--rg-muted); letter-spacing: .06em; }
.rg-site .woocommerce-ordering select { border: 1px solid var(--rg-line); border-radius: 999px; padding: .5em 2.2em .5em 1em; font: 14px var(--rg-sans); background-color: #fff; }
.rg-site ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.7vw, 24px); margin: 0 0 40px !important; padding: 0 !important; list-style: none; clear: both; }
.rg-site ul.products::before, .rg-site ul.products::after { display: none !important; }
.rg-site ul.products li.rg-li { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; list-style: none; }
.rg-site ul.products li.rg-li .rg-card { height: 100%; box-shadow: 0 0 0 1px var(--rg-line); }
.rg-site .woocommerce-pagination ul { display: flex; justify-content: center; gap: 8px; border: 0 !important; }
.rg-site .woocommerce-pagination ul li { border: 0 !important; }
.rg-site .woocommerce-pagination a, .rg-site .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rg-line) !important; color: var(--rg-text); }
.rg-site .woocommerce-pagination span.current { background: var(--rg-ink) !important; color: #fff !important; border-color: var(--rg-ink) !important; }

/* ---------- 商品頁 ---------- */
.rg-site.single-product div.product .product_title { font-family: var(--rg-serif); font-weight: 600; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.5; letter-spacing: .1em; color: var(--rg-ink); margin-bottom: .5em; }
.rg-site.single-product div.product p.price, .rg-site.single-product div.product span.price { font-family: var(--rg-serif); font-size: clamp(20px, 1.8vw, 26px); color: var(--rg-ink) !important; letter-spacing: .06em; }
.rg-site.single-product div.product p.price del { color: var(--rg-muted); font-size: .75em; }
.rg-site.single-product div.product p.price ins { text-decoration: none; }
.rg-site.single-product div.product .woocommerce-product-gallery { background: #fff; border-radius: var(--rg-radius); overflow: hidden; box-shadow: 0 0 0 1px var(--rg-line); }
.rg-site.single-product div.product .woocommerce-product-details__short-description, .rg-site.single-product div.product .woocommerce-Tabs-panel { font-size: 15px; line-height: 2; letter-spacing: .06em; }
.rg-site .single_add_to_cart_button, .rg-site .checkout-button, .rg-site #place_order, .rg-site .woocommerce-button, .rg-site .woocommerce .button.alt, .rg-site button.button.alt, .rg-site a.button.alt { background: var(--rg-ink) !important; color: #fff !important; border: 1px solid var(--rg-ink) !important; border-radius: 999px !important; padding: .9em 2.2em !important; font-family: var(--rg-serif) !important; letter-spacing: .2em !important; font-weight: 500 !important; }
.rg-site .single_add_to_cart_button:hover, .rg-site .checkout-button:hover, .rg-site #place_order:hover { background: #3a3530 !important; }
.rg-site .woocommerce .button:not(.alt), .rg-site button.button:not(.alt), .rg-site a.button:not(.alt) { border-radius: 999px; font-family: var(--rg-sans); letter-spacing: .1em; }
.rg-site div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rg-site div.product form.cart .quantity .qty { height: 48px; width: 72px; border: 1px solid var(--rg-line); border-radius: 999px; text-align: center; }
.rg-wish--inline { position: static; width: auto; height: 48px; padding: 0 1.3em; gap: 8px; display: inline-flex; border: 1px solid var(--rg-line); border-radius: 999px; background: #fff; font: 14px var(--rg-sans); letter-spacing: .12em; }
.rg-site .product_meta { font-size: 13px; color: var(--rg-muted); letter-spacing: .06em; }
.rg-site .product_meta a { color: var(--rg-text); }
.rg-site .woocommerce-tabs { margin-top: clamp(32px, 4vw, 56px); }
.rg-site .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px !important; padding: 0 !important; border-bottom: 1px solid var(--rg-line); overflow: visible; }
.rg-site .woocommerce-tabs ul.tabs::before, .rg-site .woocommerce-tabs ul.tabs::after, .rg-site .woocommerce-tabs ul.tabs li::before, .rg-site .woocommerce-tabs ul.tabs li::after { display: none !important; content: none !important; }
.rg-site .woocommerce-tabs ul.tabs li { margin: 0 0 -1px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; }
.rg-site .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 18px !important; font-family: var(--rg-serif); font-weight: 500 !important; letter-spacing: .14em; color: var(--rg-muted) !important; border-bottom: 2px solid transparent; }
.rg-site .woocommerce-tabs ul.tabs li.active a, .rg-site .woocommerce-tabs ul.tabs li a:hover { color: var(--rg-ink) !important; border-bottom-color: var(--rg-gold); }
.rg-site .woocommerce-tabs .panel > h2:first-child { display: none; }
.rg-site .woocommerce-tabs table.woocommerce-product-attributes { border: 1px solid var(--rg-line); border-radius: 10px; border-collapse: separate; overflow: hidden; }
.rg-site .woocommerce-tabs table.woocommerce-product-attributes th { width: 9em; background: var(--rg-cream); font-weight: 500; color: var(--rg-ink); }
.rg-site .woocommerce-tabs table.woocommerce-product-attributes th, .rg-site .woocommerce-tabs table.woocommerce-product-attributes td { padding: 12px 16px; border-color: var(--rg-line); font-style: normal; }
.rg-site #reviews .comment-reply-title, .rg-site #reviews .woocommerce-Reviews-title { font-family: var(--rg-serif); font-size: 18px; letter-spacing: .1em; color: var(--rg-ink); }
.rg-site #reviews textarea { border: 1px solid var(--rg-line); border-radius: 10px; padding: 12px; }
.rg-site #review_form #respond .form-submit input { border-radius: 999px; background: var(--rg-ink); color: #fff; padding: .8em 2em; border: 0; letter-spacing: .16em; }
.rg-site .related > h2, .rg-site .upsells > h2, .rg-site .cross-sells > h2 { font-family: var(--rg-serif); font-weight: 600; text-align: center; letter-spacing: .14em; font-size: clamp(22px, 2vw, 30px); color: var(--rg-ink); margin: 1.6em 0 1em; }

.rg-site table.variations { border: 0; margin: 0 0 1em; }
.rg-site table.variations th, .rg-site table.variations td { border: 0; padding: 6px 12px 6px 0; vertical-align: middle; background: none; }
.rg-site table.variations th label { font-weight: 500; letter-spacing: .1em; color: var(--rg-ink); }
.rg-site table.variations select { min-width: 200px; height: 46px; padding: 0 2.4em 0 1em; border: 1px solid var(--rg-line); border-radius: 999px; font: 15px var(--rg-sans); background-color: #fff; color: var(--rg-ink); }
.rg-site .reset_variations { margin-left: 10px; font-size: 13px; color: var(--rg-muted) !important; }
.rg-site .woocommerce-variation-price .price { font-size: clamp(18px, 1.6vw, 22px) !important; }
.rg-site .single_variation_wrap .woocommerce-variation { margin: 4px 0 20px; }
.rg-site .single_variation_wrap .woocommerce-variation-price { margin-bottom: 4px; }
.rg-site .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--rg-line); }
.rg-site div.product form.cart:not(.variations_form) { margin-top: 20px; }

/* ---------- 購物車、結帳、我的帳號 ---------- */
.rg-site.woocommerce-cart .entry-title, .rg-site.woocommerce-checkout .entry-title, .rg-site.woocommerce-account .entry-title { font-family: var(--rg-serif); font-weight: 600; letter-spacing: .14em; text-align: center; color: var(--rg-ink); }
.rg-site .woocommerce table.shop_table { border: 1px solid var(--rg-line); border-radius: var(--rg-radius); border-collapse: separate; overflow: hidden; background: #fff; }
.rg-site .woocommerce table.shop_table th { font-weight: 500; letter-spacing: .08em; color: var(--rg-ink); background: var(--rg-cream); }
.rg-site .woocommerce table.shop_table td, .rg-site .woocommerce table.shop_table th { border-color: var(--rg-line); }
.rg-site .woocommerce table.shop_table .product-name a { color: var(--rg-ink); text-decoration: none; font-family: var(--rg-serif); letter-spacing: .06em; }
.rg-site .woocommerce .amount { font-family: var(--rg-serif); letter-spacing: .04em; }
.rg-site .cart_totals h2, .rg-site #order_review_heading, .rg-site .woocommerce-billing-fields h3, .rg-site .woocommerce-shipping-fields h3, .rg-site .woocommerce-additional-fields h3, .rg-site .woocommerce-MyAccount-content h2, .rg-site .woocommerce-order-details__title, .rg-site .woocommerce-column__title { font-family: var(--rg-serif); font-weight: 600; letter-spacing: .12em; color: var(--rg-ink); font-size: 20px; }
.rg-site .woocommerce form .form-row input.input-text, .rg-site .woocommerce form .form-row textarea, .rg-site .woocommerce form .form-row select, .rg-site .select2-container .select2-selection--single { border: 1px solid var(--rg-line); border-radius: 10px; min-height: 46px; padding: .6em .9em; font: 15px var(--rg-sans); background: #fff; }
.rg-site .woocommerce form .form-row label { font-size: 14px; letter-spacing: .06em; color: var(--rg-text); }
.rg-site .woocommerce-checkout-review-order, .rg-site #payment { border-radius: var(--rg-radius); }
.rg-site .woocommerce-checkout #payment { background: var(--rg-cream); }
.rg-site .woocommerce-message, .rg-site .woocommerce-info, .rg-site .woocommerce-error { border: 0; border-top: 2px solid var(--rg-gold); border-radius: 10px; background: var(--rg-cream); color: var(--rg-text); outline: 0; }
.rg-site .woocommerce-message .button { border-radius: 999px; background: var(--rg-ink); color: #fff; }
.rg-site .woocommerce-message::before, .rg-site .woocommerce-info::before { color: var(--rg-gold); }
.rg-site .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rg-line); border-radius: var(--rg-radius); overflow: hidden; background: #fff; }
.rg-site .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--rg-line); }
.rg-site .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.rg-site .woocommerce-MyAccount-navigation a { display: block; padding: 14px 18px; color: var(--rg-text); text-decoration: none; letter-spacing: .1em; font-size: 15px; }
.rg-site .woocommerce-MyAccount-navigation li.is-active a { background: var(--rg-ink); color: #fff; }
.rg-site .woocommerce form.login, .rg-site .woocommerce form.register { border: 1px solid var(--rg-line); border-radius: var(--rg-radius); background: #fff; }
.rg-site .woocommerce table.shop_table .product-thumbnail img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; box-shadow: 0 0 0 1px var(--rg-line); }
.rg-site .woocommerce .quantity .qty, .rg-site .woocommerce .coupon .input-text { height: 42px; min-width: 64px; padding: 0 12px; border: 1px solid var(--rg-line); border-radius: 999px; font: 14px var(--rg-sans); }
.rg-site .woocommerce .coupon .input-text { min-width: 140px; }
.rg-site .woocommerce a.remove { color: var(--rg-muted) !important; font-weight: 400; }
.rg-site .woocommerce a.remove:hover { background: var(--rg-ink); color: #fff !important; }
.rg-site .woocommerce-shipping-calculator .shipping-calculator-button { color: var(--rg-text); }
/* 區塊版購物車、結帳 */
.rg-site .wc-block-components-button:not(.is-link) { background: var(--rg-ink); color: #fff; border-radius: 999px; font-family: var(--rg-serif); letter-spacing: .2em; }
.rg-site .wc-block-components-product-name { font-family: var(--rg-serif); color: var(--rg-ink); letter-spacing: .06em; }
.rg-site .wc-block-components-text-input input, .rg-site .wc-blocks-components-select .wc-blocks-components-select__select { border-radius: 10px !important; border-color: var(--rg-line) !important; }
.rg-site .wc-block-cart__totals-title, .rg-site .wc-block-components-checkout-step__title { font-family: var(--rg-serif); letter-spacing: .12em; }

/* ---------- Blocksy：調色盤換成如初的顏色（按鈕、連結、邊框、背景都跟著變） ---------- */
body.rg-blocksy {
	--theme-palette-color-1: #1a1714;
	--theme-palette-color-2: #a08a5f;
	--theme-palette-color-3: #3d3935;
	--theme-palette-color-4: #1a1714;
	--theme-palette-color-5: #e7e1d9;
	--theme-palette-color-6: #f7f3ef;
	--theme-palette-color-7: #ffffff;
	--theme-palette-color-8: #ffffff;
	/* Blocksy 在 :root 先把這些換算成調色盤的值，所以這裡也要一起改 */
	--theme-text-color: #3d3935;
	--theme-headings-color: #1a1714;
	--theme-link-initial-color: #1a1714;
	--theme-link-hover-color: #a08a5f;
	--theme-border-color: #e7e1d9;
	--theme-selection-background-color: #a08a5f;
	--theme-form-field-border-focus-color: #a08a5f;
	--theme-form-selection-field-active-color: #1a1714;
	--theme-button-background-initial-color: #1a1714;
	--theme-button-background-hover-color: #3a3530;
	--theme-button-border-radius: 999px;
	--theme-font-family: var(--rg-sans);
	background-color: #fff;
}
.rg-blocksy .page-title, .rg-blocksy .entry-content h1, .rg-blocksy .entry-content h2, .rg-blocksy .entry-content h3, .rg-blocksy .woocommerce-products-header__title { font-family: var(--rg-serif); font-weight: 600; letter-spacing: .12em; color: var(--rg-ink); }
.rg-blocksy .hero-section[data-type="type-1"] { margin-bottom: 8px; }
.rg-blocksy .ct-breadcrumbs { font-size: 12px; letter-spacing: .08em; color: var(--rg-muted); }
.rg-blocksy .ct-breadcrumbs a { color: var(--rg-text); }
.rg-blocksy .button, .rg-blocksy button[type="submit"], .rg-blocksy .wp-element-button { font-family: var(--rg-sans); letter-spacing: .12em; }
.rg-blocksy .woocommerce-product-gallery { background: #fff; }
.rg-blocksy #main-container { background: #fff; }
/* Blocksy 的商品分頁（置中樣式）：外框滿版、手機改直排；改成和內容對齊的橫排、可左右滑 */
.rg-blocksy .woocommerce-tabs { margin-top: 28px !important; padding-top: 0 !important; }
.rg-blocksy .woocommerce-tabs ul.tabs { flex-direction: row !important; flex-wrap: nowrap !important; justify-content: center; width: auto !important; max-width: min(100% - 32px, var(--theme-normal-container-max-width, 1290px)); margin: 0 auto 20px !important; overflow-x: auto; scrollbar-width: none; }
.rg-blocksy .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.rg-blocksy .woocommerce-tabs ul.tabs li { flex: none; width: auto !important; }
.rg-blocksy .woocommerce-tabs ul.tabs li a { font-size: 15px; color: #6f6a64 !important; white-space: nowrap; }
.rg-blocksy .woocommerce-tabs ul.tabs li.active a { color: var(--rg-ink) !important; font-weight: 600 !important; }
.rg-blocksy .product_meta { margin-bottom: 0; padding-bottom: 0; }
.rg-site .rg-wish--inline { flex: none; width: auto !important; min-width: 48px; height: 48px !important; min-height: 48px; }

/* ---------- 商店、分類、商品頁：內容區米色底、白色圓角卡片（參考精品金飾網站的版面，用如初的米色／金色） ---------- */
:root { --rg-gold-btn: #8f7346; --rg-gold-btn-hover: #7a6139; }
body.rg-site.woocommerce-shop, body.rg-site.tax-product_cat, body.rg-site.tax-product_tag, body.rg-site.single-product, body.rg-site.search-results.post-type-archive-product,
body.rg-blocksy.woocommerce-shop #main-container, body.rg-blocksy.tax-product_cat #main-container, body.rg-blocksy.tax-product_tag #main-container, body.rg-blocksy.single-product #main-container, body.rg-blocksy.search-results #main-container { background-color: var(--rg-cream) !important; }
.rg-site.woocommerce-shop .qa-main, .rg-site.tax-product_cat .qa-main, .rg-site.single-product .qa-main { background: var(--rg-cream); }
/* 列表頁標題：英文金色眉標＋大襯線標題＋細分隔線，靠左 */
.rg-archive-head { text-align: left; max-width: none; margin: clamp(36px, 4.5vw, 64px) 0 clamp(20px, 2.4vw, 28px) !important; padding: 0 0 clamp(20px, 2.2vw, 28px); border-bottom: 1px solid #ddd3c5; }
.rg-archive-head .rg-eyebrow { font-size: 13px; letter-spacing: .28em; color: var(--rg-gold); margin-bottom: .7em; }
.rg-archive-head .rg-title { font-size: clamp(30px, 3vw, 44px); font-weight: 600; letter-spacing: .08em; }
.rg-archive-head .rg-sub { margin-top: .7em; }
.rg-site .rg-tabs { justify-content: flex-start; padding: 0; margin-bottom: clamp(24px, 3vw, 40px); }
.rg-site .rg-tabs a { background: transparent; border-color: #d9cdbb; color: var(--rg-text); }
.rg-site .rg-tabs a[aria-current="page"], .rg-site .rg-tabs a:hover { background: var(--rg-ink); border-color: var(--rg-ink); color: #fff; }
.rg-site .woocommerce-result-count { color: #7a746d; }
.rg-site .woocommerce-ordering select { background-color: #fff; border-color: #e2d8ca; }
/* 商品卡：米色底上的白色圓角卡（16px）、淡陰影、圖白底、名稱襯線置中、價格襯線 */
.rg-site ul.products { gap: clamp(14px, 2.6vw, 48px) clamp(14px, 3.4vw, 48px); }
.rg-site ul.products li.rg-li .rg-card { border-radius: 16px; box-shadow: 0 10px 30px rgba(120, 96, 60, .08) !important; }
.rg-site ul.products li.rg-li .rg-card:hover { box-shadow: 0 16px 40px rgba(120, 96, 60, .14) !important; }
.rg-site ul.products .rg-card__media { padding: 8% 8% 0; }
.rg-site ul.products .rg-card__body { padding: 14px 18px 26px; }
.rg-site ul.products .rg-card__title { font-size: clamp(14px, 1.15vw, 17px); min-height: 3.2em; margin-bottom: .8em; }
.rg-site ul.products .rg-card__price { font-size: clamp(15px, 1.2vw, 18px); color: var(--rg-ink); }
/* 商品頁：米色底、主圖白框、標題襯線粗、分隔線、大字價格、整條金棕色購買按鈕 */
.rg-site.single-product div.product { padding-top: clamp(16px, 3vw, 40px); }
.rg-site.single-product div.product .woocommerce-product-gallery { background: #fff; border-radius: 4px; box-shadow: none; border: 0 !important; }
.rg-site.single-product .flex-control-thumbs li img { border-bottom: 3px solid transparent; opacity: .7; }
.rg-site.single-product .flex-control-thumbs li img.flex-active { border-bottom-color: var(--rg-gold); opacity: 1; }
.rg-site.single-product div.product .product_title { font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); }
.rg-site.single-product div.product .summary .price { font-size: clamp(26px, 2.4vw, 34px) !important; padding-top: 18px; margin-top: 4px; border-top: 1px solid #ddd3c5; }
.rg-site.single-product .ruchu-weight { margin: 0 0 22px; font-size: 15px; }
.rg-site.single-product .woocommerce-variation-add-to-cart { border-top: 1px solid #ddd3c5; }
.rg-site.single-product table.variations select, .rg-site.single-product div.product form.cart .quantity .qty, .rg-site.single-product .quantity { background-color: #fff; }
.rg-site.single-product div.product form.cart { flex-wrap: wrap; }
.rg-site.single-product .woocommerce-variation-add-to-cart, .rg-site.single-product form.cart:not(.variations_form) { width: 100% !important; max-width: none !important; }
.rg-site.single-product .ct-cart-actions { display: flex !important; flex-wrap: nowrap; align-items: stretch; gap: 10px; width: 100% !important; max-width: none !important; }
.rg-site.single-product .ct-cart-actions .quantity { flex: none; }
.rg-site.single-product form.variations_form > table.variations, .rg-site.single-product form.variations_form > .single_variation_wrap { flex: 1 1 100%; width: 100%; }
.rg-site.single-product div.product form.cart .single_add_to_cart_button { white-space: nowrap; letter-spacing: .22em !important; padding-left: 1em !important; padding-right: 1em !important; }
.rg-site.single-product .ct-cart-actions .rg-wish--inline { align-self: center; }
.rg-site.single-product div.product form.cart .single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; background: var(--rg-gold-btn) !important; border-color: var(--rg-gold-btn) !important; border-radius: 6px !important; font-size: 16px !important; letter-spacing: .3em !important; }
.rg-site.single-product div.product form.cart .single_add_to_cart_button:hover { background: var(--rg-gold-btn-hover) !important; border-color: var(--rg-gold-btn-hover) !important; }
.rg-site.single-product div.product form.cart .single_add_to_cart_button.disabled { opacity: .55; }
.rg-site.single-product .rg-wish--inline { background: #fff; border-color: #ddd3c5; }
.rg-tab-note { color: #8a6d3b; background: #fff; border: 1px dashed #d9c49a; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
/* 商品頁左右留白：電腦 120px、平板 80px、手機 20px（麵包屑、主圖＋資訊、分頁、相關商品都照這個寬度） */
body.rg-blocksy.single-product { --theme-container-width: calc(100% - 240px); }
body.rg-blocksy.single-product .woocommerce-tabs { width: var(--theme-container-width) !important; max-width: var(--theme-normal-container-max-width, 1290px); margin-left: auto !important; margin-right: auto !important; }
body.rg-blocksy.single-product .woocommerce-tabs ul.tabs { max-width: 100% !important; }
@media (max-width: 1024px) { body.rg-blocksy.single-product { --theme-container-width: calc(100% - 160px); } }
@media (max-width: 767px) { body.rg-blocksy.single-product { --theme-container-width: calc(100% - 40px); } }
/* 數量（−／數字／＋）、加入購物車、追蹤：同一列、同高 52px、垂直置中 */
.rg-site.single-product .ct-cart-actions { align-items: center !important; }
.rg-site.single-product .ct-cart-actions .quantity { display: flex !important; align-items: stretch; flex: none; width: auto !important; height: 52px !important; margin: 0 !important; padding: 0 !important; border: 1px solid #ddd3c5; border-radius: 6px; background: #fff; overflow: hidden; box-sizing: border-box; }
.rg-site.single-product .ct-cart-actions .quantity .ct-decrease { order: 0; }
.rg-site.single-product .ct-cart-actions .quantity input.qty { order: 1; }
.rg-site.single-product .ct-cart-actions .quantity .ct-increase { order: 2; }
.rg-site.single-product .ct-cart-actions .quantity .ct-decrease, .rg-site.single-product .ct-cart-actions .quantity .ct-increase { position: static !important; display: flex !important; align-items: center; justify-content: center; width: 40px !important; height: auto !important; margin: 0 !important; transform: none !important; inset: auto !important; border: 0 !important; background: transparent; cursor: pointer; }
.rg-site.single-product .ct-cart-actions .quantity input.qty { width: 48px !important; height: 100% !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: center; font-size: 16px; line-height: 50px; background: transparent; -moz-appearance: textfield; }
.rg-site.single-product .ct-cart-actions .quantity input.qty::-webkit-inner-spin-button, .rg-site.single-product .ct-cart-actions .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rg-site.single-product div.product form.cart .ct-cart-actions .single_add_to_cart_button { height: 52px !important; min-height: 52px !important; margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1 !important; align-self: center; }
/* 追蹤另起一列，靠左、和數量框對齊（隱形的換行元素把它推到下一列） */
.rg-site.single-product .ct-cart-actions { flex-wrap: wrap !important; row-gap: 14px; }
.rg-site.single-product .ct-cart-actions .quantity { order: 0; }
.rg-site.single-product .ct-cart-actions .single_add_to_cart_button { order: 1; }
.rg-site.single-product .ct-cart-actions::after { content: ""; order: 2; flex: 0 0 100%; height: 0; }
.rg-site.single-product .ct-cart-actions .rg-wish--inline { order: 3; flex: 0 0 auto; width: auto !important; height: 44px !important; min-height: 44px; margin: 0 !important; padding: 0 18px !important; border-radius: 999px; box-sizing: border-box; align-self: flex-start; }
.rg-site.single-product .ct-cart-actions .rg-wish--inline span { display: inline !important; }

/* 推薦商品：白方圖、圖下緣浮一顆白圓愛心，文字直接在米色上 */
.rg-site.single-product .related.products, .rg-site.single-product .upsells.products { margin-top: clamp(48px, 6vw, 88px); }
.rg-site.single-product .related.products > h2, .rg-site.single-product .upsells.products > h2 { font-weight: 600; }
.rg-site.single-product .related ul.products li.rg-li .rg-card, .rg-site.single-product .upsells ul.products li.rg-li .rg-card { background: transparent; box-shadow: none !important; border-radius: 0; overflow: visible; container-type: inline-size; }
.rg-site.single-product .related .rg-card__media, .rg-site.single-product .upsells .rg-card__media { background: #fff; padding: 6%; }
.rg-site.single-product .related .rg-wish, .rg-site.single-product .upsells .rg-wish { top: calc(100cqw - 22px); right: 50%; margin-right: -22px; width: 44px; height: 44px; background: #fff; box-shadow: 0 4px 14px rgba(26, 23, 20, .12); }
.rg-site.single-product .related .rg-card__body, .rg-site.single-product .upsells .rg-card__body { padding: 34px 8px 8px; }

/* 商品頁下方分頁（描述、額外資訊、評價…）：手機、平板（1024px 以下）是和內容同寬的白卡；電腦維持米色（0.2.5） */
@media (max-width: 1024px) {
	body.rg-blocksy.single-product .woocommerce-tabs, .rg-site.single-product .woocommerce-tabs { background: #fff; border-radius: 12px; padding: clamp(20px, 3vw, 40px) clamp(16px, 3.5vw, 48px) clamp(28px, 4vw, 48px) !important; box-sizing: border-box; }
	.rg-site.single-product .woocommerce-tabs ul.tabs { margin-top: 0 !important; }
}

/* 相關商品轉盤：電腦、平板一次 3 個，手機一次 2 個；左右箭頭、滑動、鍵盤左右鍵都可以切換（沒有 JS 也能橫向滑） */
.rg-site.single-product .related.products { position: relative; --rg-per: 3; --rg-gap: 24px; }
.rg-site.single-product .related.products > h2 { margin-bottom: 20px; }
.rg-site.single-product .related ul.products { display: grid !important; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--rg-per) - 1) * var(--rg-gap)) / var(--rg-per)); gap: var(--rg-gap) !important; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 0 0 8px !important; margin: 0 !important; }
.rg-site.single-product .related ul.products::-webkit-scrollbar { display: none; }
.rg-site.single-product .related ul.products > li { width: auto !important; max-width: none !important; margin: 0 !important; scroll-snap-align: start; }
.rg-site.single-product .related ul.products:focus-visible { outline: 2px solid var(--rg-gold); outline-offset: 4px; }
.rg-carousel__nav { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.rg-carousel__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ddd3c5; border-radius: 999px; background: #fff; color: var(--rg-ink); cursor: pointer; transition: opacity .2s, border-color .2s; }
.rg-carousel__btn:hover:not(:disabled) { border-color: var(--rg-gold); }
.rg-carousel__btn:focus-visible { outline: 2px solid var(--rg-gold); outline-offset: 2px; }
.rg-carousel__btn:disabled { opacity: .35; cursor: default; }
.rg-carousel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 767px) { .rg-site.single-product .related.products { --rg-per: 2; --rg-gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .rg-site.single-product .related ul.products { scroll-behavior: auto; } }

/* 頁尾頁面：範本提示（只有管理員看得到）、法律頁「本頁為範本」、金價公式 */
.rg-draft-note { margin: 0 0 24px; padding: 10px 14px; border: 1px dashed #d9c49a; border-radius: 10px; background: #fff; color: #8a6d3b; font-size: 14px; }
.rg-site .rg-template-note { color: #8a6d3b; }
.rg-site .rg-formula { padding: 14px 18px; border-left: 3px solid var(--rg-gold); background: #fff; font-family: var(--rg-serif); }
/* 品牌理念（關於如初金坊）：首頁的字型、米色金色；整頁內容區米色（和商店頁一樣） */
body.rg-blocksy:has(.rg-about) #main-container, .rg-site:has(.rg-about) .qa-main { background: var(--rg-cream); }
.rg-about { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 64px) 0; text-align: center; }
.rg-about .rg-about__eyebrow { font-family: var(--rg-serif); letter-spacing: .3em; color: var(--rg-gold); font-size: 13px; margin: 0 0 12px; }
.rg-about .rg-about__title { font-family: var(--rg-serif); font-weight: 600; letter-spacing: .14em; font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 28px; }
.rg-about .rg-about__lead { margin: 0 auto 48px; padding: clamp(20px, 3vw, 36px); border: 0; border-top: 1px solid var(--rg-gold); border-bottom: 1px solid var(--rg-gold); background: #fff; font-family: var(--rg-serif); font-size: clamp(17px, 1.6vw, 20px); line-height: 2; letter-spacing: .06em; }
.rg-about .rg-about__lead p { margin: 0; }
.rg-about .rg-about__sub { font-family: var(--rg-serif); font-weight: 600; letter-spacing: .12em; color: var(--rg-gold); font-size: 18px; margin: 40px 0 12px; }
.rg-about p { line-height: 2; letter-spacing: .04em; }
.rg-about .rg-about__cta { justify-content: center; margin-top: 40px; }
.rg-about .rg-about__cta .wp-block-button__link { background: var(--rg-gold-btn); border-radius: 6px; padding: 14px 36px; letter-spacing: .2em; color: #fff; }

/* 送禮推薦頁：四組篩選（可多選的圓角標籤）＋商品卡；首頁「如初精選金飾」下面的入口按鈕 */
body.rg-blocksy:has(.rg-gf) #main-container, .rg-site:has(.rg-gf) .qa-main { background: var(--rg-cream); }
.rg-gf__form { margin: 0 0 clamp(28px, 4vw, 44px); padding: clamp(18px, 2.6vw, 32px); background: #fff; border-radius: 12px; }
.rg-gf__group { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.rg-gf__legend { padding: 0; margin: 0 0 10px; font-family: var(--rg-serif); font-weight: 600; letter-spacing: .14em; color: var(--rg-ink); }
.rg-gf__chips { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.rg-chip { position: relative; display: inline-flex; margin: 0 !important; cursor: pointer; } /* 佈景給 label 下邊距（最後一個沒有），會讓最後一顆變高 */
.rg-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rg-chip span { display: inline-block; padding: 8px 16px; border: 1px solid #ddd3c5; border-radius: 999px; background: #fff; font-size: 14px; letter-spacing: .06em; color: var(--rg-ink); transition: background .15s, border-color .15s, color .15s; }
.rg-chip:hover span { border-color: var(--rg-gold); }
.rg-chip input:checked + span { background: var(--rg-gold-btn); border-color: var(--rg-gold-btn); color: #fff; }
.rg-chip input:focus-visible + span { outline: 2px solid var(--rg-gold); outline-offset: 2px; }
.rg-gf__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 16px; border-top: 1px solid #ece4d8; }
.rg-gf__count { margin: 0; font-size: 14px; color: #6f6a64; }
.rg-gf__count strong { color: var(--rg-ink); font-size: 16px; }
.rg-gf__clear { font-size: 14px; color: #6f6a64; text-decoration: underline; }
.rg-gf__submit { margin-left: auto; padding: 10px 28px; border: 0; border-radius: 6px; background: var(--rg-gold-btn); color: #fff; letter-spacing: .2em; cursor: pointer; }
.rg-gf.is-live .rg-gf__submit { display: none; }
.rg-gf__empty { margin: 0 0 24px; padding: 28px 16px; text-align: center; background: #fff; border-radius: 12px; color: #6f6a64; }
.rg-gf__results li.is-gf-out { display: none !important; }
.rg-gift-cta { margin: clamp(24px, 3vw, 36px) 0 0; text-align: center; }
.rg-gift-cta__btn { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 28px; line-height: 1.6; text-align: center; border: 1px solid var(--rg-gold-btn); border-radius: 6px; color: var(--rg-gold-btn); text-decoration: none; letter-spacing: .12em; transition: background .15s, color .15s; }
.rg-gift-cta__btn:hover { background: var(--rg-gold-btn); color: #fff; }
.rg-gift-cta__btn .rg-icon { width: 16px; height: 16px; vertical-align: -2px; }
.rg-gift-cta__line { display: block; }
.rg-gift-cta__end { white-space: nowrap; }
/* 電腦（1025px 以上）：一行（0.3.2）；平板、手機兩行 */
@media (min-width: 1025px) { .rg-gift-cta__btn { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0; } .rg-gift-cta__line { display: inline; } }

/* ---------- 平板、手機 ---------- */
@media (max-width: 1024px) {
	.rg-grid, .rg-site ul.products { grid-template-columns: repeat(3, 1fr); }
	.rg-hero__copy { margin-left: 52%; }
}
@media (max-width: 767px) {
	/* 手機頁首：拿掉追蹤（愛心），換成會員圖示；上面那行「登入」也拿掉，避免重複 */
	.rg-topbar { display: none; }
	.rg-tool--wish { display: none; }
	.rg-tool--account { display: inline-flex; }
	.rg-header__bar { padding-top: 14px; }
	.rg-header__bar { padding-bottom: 12px; grid-template-columns: auto 1fr auto; gap: 8px; }
	.rg-header__menu { gap: 8px; font-size: 14px; }
	.rg-header__menu .rg-icon { width: 26px; height: 26px; }
	.rg-logo__text { font-size: 22px; letter-spacing: .1em; }
	.rg-header__tools { gap: 10px; }
	.rg-tool .rg-icon { width: 24px; height: 24px; }
	.rg-hero { flex-direction: column; align-items: stretch; margin: 0; min-height: 0; }
	.rg-hero__media, .rg-hero__media picture { position: relative; inset: auto; aspect-ratio: 4 / 3; }
	.rg-hero__img { position: absolute; inset: 0; }
	.rg-hero__inner { padding: 32px var(--rg-gutter) 40px; }
	.rg-hero__copy { width: 100%; margin: 0; text-align: center; }
	.rg-hero__title { white-space: normal; }
	.rg-hero__title { font-size: 26px; }
	.rg-hero__text { letter-spacing: .12em; }
	.rg-coll-grid { grid-template-columns: 1fr; max-width: 480px; }
	.rg-coll { aspect-ratio: 1 / 1; }
	.rg-new { padding-left: 0; padding-right: 0; }
	.rg-new__inner { padding-left: 16px; padding-right: 16px; }
	.rg-grid, .rg-site ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.rg-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.rg-tabs a { flex: none; font-size: 13px; }
	.rg-archive-head { margin-top: 28px !important; }
	.rg-site ul.products .rg-card__title { min-height: 3.2em; }
	.rg-wish--inline span { display: none; }
	.rg-site .rg-wish--inline:not(.single-product .rg-wish--inline) { width: 52px !important; padding: 0 !important; justify-content: center; }
	.rg-blocksy .woocommerce-tabs ul.tabs { justify-content: flex-start; }
	.rg-blocksy .woocommerce-tabs ul.tabs li a { padding: 12px 14px !important; }
	.rg-card { border-radius: 10px; }
	.rg-card__body { padding: 4px 10px 18px; }
	.rg-wish { width: 32px; height: 32px; top: 8px; right: 8px; }
	.rg-brand { grid-template-columns: 1fr; }
	.rg-brand__copy { padding: 0; order: 2; }
	.rg-brand__media { order: 1; max-width: none; aspect-ratio: 4 / 3; }
	.rg-footer__cols { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
	.rg-footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.rg-footer__social { justify-self: center; }
	.rg-search__form .rg-btn { display: none; }
}
@media (max-width: 480px) {
	.rg-header__menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.rg-logo__text { font-size: 20px; letter-spacing: .08em; }
	.rg-header__tools { gap: 6px; }
	.rg-tool .rg-icon { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
	.rg-coll__img, .rg-card, .rg-link .rg-icon, .rg-drawer__panel { transition: none; animation: none; }
}

/* ========== 0.4.0 ========== */

/* 1. 滿版：短代碼放在 Elementor（boxed 容器、預設 padding）或一般寬度的頁面裡，也撐滿螢幕寬。
   --rg-vw＝不含捲軸的視窗寬（front.js 量），沒有 JS 時用 100vw。 */
/* 用 html body 提高優先權，蓋過 WordPress／Blocksy「內容寬度」的 width、margin auto !important */
html body .rg-bleed { position: relative; box-sizing: border-box; width: var(--rg-vw, 100vw) !important; max-width: none !important; margin-left: calc(50% - var(--rg-vw, 100vw) / 2) !important; margin-right: calc(50% - var(--rg-vw, 100vw) / 2) !important; }
.rg-bleed + .rg-bleed { margin-top: 0; }
html:has(.rg-bleed) { overflow-x: clip; }
.rg-full .rg-hero { margin-left: 0; margin-right: 0; }
.rg-full .rg-new { padding-left: 0; padding-right: 0; } /* 如初飾品的米色底也滿版 */

/* 2. 主視覺轉盤：每張圖一格，左右滑動（scroll-snap）；文字疊在圖上。 */
.rg-hero__track { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.rg-hero__track::-webkit-scrollbar { display: none; }
.rg-hero__slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.rg-hero__slide picture, .rg-hero__link { position: absolute; inset: 0; display: block; }
.rg-hero__slide .rg-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.rg-hero__inner { pointer-events: none; }
.rg-hero__copy a, .rg-hero__copy button { pointer-events: auto; }
.rg-hero__nav { position: absolute; left: 50%; bottom: 18px; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rg-hero__arrow, .rg-hero__pause { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--rg-ink); cursor: pointer; }
.rg-hero__arrow svg, .rg-hero__pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-hero__arrow:hover, .rg-hero__pause:hover { background: rgba(26, 23, 20, .08); }
.rg-hero__pause .rg-hero__play-i { display: none; fill: currentColor; stroke: none; }
.rg-hero__pause[aria-pressed="true"] .rg-hero__pause-i { display: none; }
.rg-hero__pause[aria-pressed="true"] .rg-hero__play-i { display: inline; }
.rg-hero__dots { display: flex; align-items: center; gap: 2px; }
.rg-hero__dot { position: relative; width: 24px; height: 34px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.rg-hero__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: rgba(26, 23, 20, .28); transition: background .2s, transform .2s; }
.rg-hero__dot[aria-current="true"]::before { background: var(--rg-ink); transform: scale(1.25); }
.rg-hero :focus-visible { outline: 2px solid var(--rg-gold); outline-offset: 2px; }
@media (max-width: 767px) {
	.rg-hero__track { position: absolute; inset: 0; }
	.rg-hero .rg-hero__slide picture { aspect-ratio: auto !important; }
	.rg-hero__nav { bottom: 10px; gap: 2px; }
	.rg-hero__arrow, .rg-hero__pause { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .rg-hero__track { scroll-behavior: auto; } }

/* 4. 頁首高度、Logo 高度（外觀 → 如初首頁 → 頁首和頁尾；數字在 <style id="ruchu-header-size">） */
.rg-header__bar { height: var(--rg-header-h, 76px); padding-top: 0 !important; padding-bottom: 0 !important; box-sizing: border-box; transition: height .25s ease; }
.rg-logo { display: flex; align-items: center; justify-content: center; line-height: 1; }
.rg-logo__text { display: block; font-size: var(--rg-logo-h, 36px) !important; line-height: 1.1; transition: font-size .25s ease; }
.rg-logo__img { height: var(--rg-logo-h, 36px) !important; max-height: none !important; width: auto; transition: height .25s ease; }
@media (max-width: 767px) { .rg-logo__text { font-size: min(var(--rg-logo-h, 20px), 7vw) !important; } }

/* 8. 頁首固定：往下捲超過頁首後，頁首固定在上方、縮成較矮的版本（front.js 加 is-stuck）；
   原本的位置用 min-height 留著，不會跳動。WordPress 管理工具列出現時往下讓開。 */
body { --rg-adminbar: 0px; }
body.admin-bar { --rg-adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --rg-adminbar: 46px; } }
@media (max-width: 600px) { body.admin-bar { --rg-adminbar: 0px; } } /* 600px 以下管理工具列會跟著捲走 */
.rg-sticky .rg-header.is-stuck { position: fixed; top: var(--rg-adminbar); left: 0; right: 0; z-index: 90; box-shadow: 0 6px 24px rgba(26, 23, 20, .08); animation: rg-drop .28s ease-out; }
.rg-sticky .rg-header.is-stuck .rg-topbar { display: none; }
.rg-sticky .rg-header.is-stuck .rg-header__bar { height: calc(var(--rg-header-h, 76px) * .78); }
.rg-sticky .rg-header.is-stuck .rg-logo__text { font-size: calc(var(--rg-logo-h, 36px) * .82) !important; }
.rg-sticky .rg-header.is-stuck .rg-logo__img { height: calc(var(--rg-logo-h, 36px) * .82) !important; }
@media (max-width: 767px) { .rg-sticky .rg-header.is-stuck .rg-header__bar { height: calc(var(--rg-header-h, 56px) * .86); } .rg-sticky .rg-header.is-stuck .rg-logo__text { font-size: min(calc(var(--rg-logo-h, 20px) * .9), 6.4vw) !important; } }
@keyframes rg-drop { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rg-sticky .rg-header.is-stuck { animation: none; } .rg-header__bar, .rg-logo__text, .rg-logo__img { transition: none; } }

/* 5. 電腦版商品頁：主圖最大 500×500，右邊資訊欄跟著變寬，整體置中；下方縮圖列、放大鏡、燈箱照舊。平板、手機不變。 */
@media (min-width: 1025px) {
	.rg-site.single-product .product-entry-wrapper { justify-content: center; gap: clamp(40px, 4vw, 72px); }
	/* 主圖寬＝500px，螢幕窄一點（1025～1300）時最多佔 46%，右欄不會太窄 */
	.rg-site.single-product .product-entry-wrapper > .woocommerce-product-gallery { flex: 0 0 min(500px, 46%); width: min(500px, 46%) !important; max-width: 500px !important; margin-right: 0 !important; }
	.rg-site.single-product .product-entry-wrapper > .summary { flex: 1 1 0; min-width: 0; width: auto !important; max-width: 640px !important; margin: 0 !important; }
	.rg-site.single-product .woocommerce-product-gallery .ct-media-container img, .rg-site.single-product .woocommerce-product-gallery .ct-image-container img { aspect-ratio: 1 / 1 !important; object-fit: contain; }
	.rg-site.single-product .woocommerce-product-gallery .flexy-pills { max-width: 500px; }
}

/* 6. 懸浮客服按鈕：左下角、米色圓形、「聯絡」「客服」兩行；碰到購物車、結帳等按鈕時暫時收起（front.js）。 */
.rg-float-contact { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #efe6d8; border: 1px solid #d8c9aa; box-shadow: 0 6px 18px rgba(26, 23, 20, .16); color: var(--rg-ink); font-family: var(--rg-sans); font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: .12em; text-indent: .12em; text-decoration: none; transition: opacity .2s, transform .2s, visibility .2s; }
.rg-float-contact:hover, .rg-float-contact:focus-visible { background: #e6d9c4; color: var(--rg-ink); transform: translateY(-2px); }
.rg-float-contact:focus-visible { outline: 2px solid var(--rg-gold); outline-offset: 3px; }
.rg-float-contact.is-tucked { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); }
body.rg-locked .rg-float-contact { visibility: hidden; }
@media (max-width: 767px) { .rg-float-contact { width: 56px; height: 56px; font-size: 12px; left: max(12px, env(safe-area-inset-left)); bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px)); } }
@media print { .rg-float-contact { display: none; } }

/* 2'. 轉盤每一張自己決定比例（目前這張的狀態在 section 的 data-overlay／data-fit／data-mfit 和 --rg-cur-ratio／--rg-cur-mratio，front.js 換張時更新）：
   ・圖裡已經有字（不疊加文字）＝照這張圖的比例、整張容納不裁；文字區不佔位置（螢幕閱讀器仍讀得到）。
   ・疊加文字＝原本的版面；手機有手機版圖時照手機版圖的比例。 */
.rg-hero[data-overlay="no"] .rg-hero__inner { position: absolute !important; width: 1px; height: 1px; padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rg-hero[data-overlay="no"] .rg-hero__copy a, .rg-hero[data-overlay="no"] .rg-hero__copy button { visibility: hidden; } /* 不在 Tab 順序（標題仍給螢幕閱讀器） */
.rg-hero__slide[data-overlay="no"] .rg-hero__img { object-fit: contain !important; object-position: 50% 50%; background: var(--rg-hero); }
@media (min-width: 768px) {
	.rg-hero[data-fit="ratio"] { min-height: 0; aspect-ratio: var(--rg-cur-ratio); }
}
@media (max-width: 767px) {
	.rg-hero[data-mfit="ratio"] .rg-hero__media { aspect-ratio: var(--rg-cur-mratio); }
	/* 圖裡有字的那張：箭頭圓點移到左下（圖裡的字和按鈕通常在右半邊），縮小一點 */
	.rg-hero[data-overlay="no"] .rg-hero__nav { left: 6px; bottom: 6px; transform: scale(.82); transform-origin: left bottom; }
}

/* ========== 0.4.0：第 9～14 項 ========== */

/* 10. 手機版 Banner：放了手機版圖就照那張圖的比例完整顯示（見上面 2'）。
   Elementor 的「.elementor img { height: auto }」會蓋掉主視覺圖的高度，圖只佔上面一條、下面空一大塊；這裡把如初的圖都固定回來。 */
html body .rg-hero .rg-hero__img { width: 100% !important; height: 100% !important; max-width: none !important; }
html body .rg-coll .rg-coll__img, html body .rg-brand .rg-brand__img { width: 100% !important; height: 100% !important; max-width: none !important; }

/* 11. 商品頁的圖不要被放大：Blocksy 預設用 3:4 框裁掉正方形商品照的左右（看起來像放大）。改成 1:1、整張顯示；縮圖列也一樣。 */
.rg-site.single-product .woocommerce-product-gallery .ct-media-container img, .rg-site.single-product .woocommerce-product-gallery .flexy-pills img { aspect-ratio: 1 / 1 !important; object-fit: contain !important; background: #fff; }

/* 12. 加入追蹤清單的小視窗 */
.rg-toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(460px, calc(100vw - 32px)); padding: 14px 14px 14px 20px; border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(26, 23, 20, .18); border: 1px solid var(--rg-line); color: var(--rg-ink); font-family: var(--rg-sans); transform: translate(-50%, 16px); opacity: 0; transition: opacity .22s, transform .22s; }
.rg-toast.is-open { opacity: 1; transform: translate(-50%, 0); }
.rg-toast[hidden] { display: none; }
.rg-toast__msg { margin: 0; font-size: 14px; line-height: 1.6; letter-spacing: .04em; }
.rg-toast__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.rg-toast__go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--rg-gold-btn, #8f7346); color: #fff !important; font-size: 13px; letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.rg-toast__go:hover, .rg-toast__go:focus-visible { background: var(--rg-gold-btn-hover, #7a6139); }
.rg-toast__close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--rg-muted); cursor: pointer; }
.rg-toast__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.rg-toast :focus-visible { outline: 2px solid var(--rg-gold); outline-offset: 2px; }
@media (max-width: 767px) { .rg-toast { bottom: 84px; flex-wrap: wrap; gap: 10px; padding: 14px 12px 12px 16px; } .rg-toast__msg { flex: 1 1 100%; } .rg-toast__actions { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .rg-toast { transition: none; } }

/* 9. 回到頂端（右下角）；樣式和左下角的客服按鈕一組 */
.rg-to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 80; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid #d8c9aa; background: #fff; color: var(--rg-ink); box-shadow: 0 6px 18px rgba(26, 23, 20, .14); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s, background .2s; }
.rg-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.rg-to-top.is-shown.is-tucked { opacity: 0; visibility: hidden; pointer-events: none; }
.rg-to-top:hover, .rg-to-top:focus-visible { background: #efe6d8; }
.rg-to-top:focus-visible { outline: 2px solid var(--rg-gold); outline-offset: 3px; }
body.rg-locked .rg-to-top { visibility: hidden; }
@media (max-width: 767px) { .rg-to-top { width: 44px; height: 44px; right: max(12px, env(safe-area-inset-right)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 16px)); } }
@media print { .rg-to-top { display: none; } }

/* 13／14. 頁面標題的米色色塊（Blocksy 頁面標題 type-2：追蹤清單、送禮推薦、購物車、品牌理念…）：高度約 1/3、字縮小，每種裝置一樣。
   高度在「外觀 → 如初首頁 → 頁首和頁尾 → 頁面標題色塊高度」（預設 84px，Blocksy 原本 250px）。 */
body.rg-blocksy .hero-section[data-type="type-2"] { --min-height: var(--rg-page-title-h, 84px) !important; }
body.rg-blocksy .hero-section[data-type="type-2"] > .entry-header { min-height: var(--rg-page-title-h, 84px) !important; padding-top: 10px !important; padding-bottom: 10px !important; justify-content: center; }
body.rg-blocksy .hero-section[data-type="type-2"] .page-title, body.rg-blocksy .hero-section[data-type="type-2"] h1 { font-size: clamp(20px, 1.7vw, 24px) !important; line-height: 1.4 !important; letter-spacing: .16em; margin: 0 !important; }

/* ========== 0.4.1 ========== */

/* 手機菜單：RUCHU GOLD 是回首頁的連結；關閉鈕不要黑色外框，鍵盤操作時才出現細的金色外框 */
.rg-drawer__brand { display: inline-block; text-decoration: none; }
.rg-drawer__brand:hover { color: var(--rg-ink); }
.rg-drawer__panel:focus { outline: none; }
html body .rg-drawer__close:focus, html body .rg-drawer__brand:focus { outline: none; box-shadow: none; }
html body .rg-drawer__brand:focus-visible { outline: 2px solid var(--rg-gold); outline-offset: 2px; border-radius: 4px; } /* 關閉鈕 0.4.3 起不畫框，見最後 */

/* 手機頁面標題色塊：下面的間距和上面一樣（以上面為準）。Blocksy 內容區上方原本留 50px，加上各頁第一個區塊自己的上方留白，下面就比上面多很多。
   標題色塊本身上下對稱，所以手機上把色塊下面的內容區上方留白拿掉、第一個區塊貼齊，第一行字的行距補回。電腦版不變。 */
@media (max-width: 766.98px) { /* 只在 767px 以下（767 本身不算，767 以上照舊） */
	body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full { padding-top: 0 !important; }
	body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > :first-child { margin-top: 0 !important; padding-top: 0 !important; }
	body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full .rg-wishlist > .rg-wishlist__empty:first-child { padding-top: 0; }
	body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full .rg-about > :first-child { margin-top: 0 !important; }
	/* 第一個區塊是文字（不是卡片）時：把第一行字上方多出來的行距扣掉，字頂才會和上面一樣高 */
	body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > :is(p, h2, h3, h4, ul, ol):first-child,
	body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full .rg-about > :is(p, h2, h3):first-child,
	body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full .rg-wishlist > .rg-wishlist__empty:first-child { margin-top: calc((1.43em - 1lh) / 2) !important; /* 1.43em＝這兩種字型一行字實際畫出來的高度 */ }
}

/* ========== 0.4.2 ========== */

/* 電腦、平板頁首：上面「我的帳號／登入」那行和下面主頁首（菜單、Logo、圖示）之間的空白縮成一半左右。
   主頁首那列的高度照「頁首高度」設定，內容上下置中，所以內容上方的空白＝（頁首高度 − 最高的那個東西）÷ 2；
   把這段空白收掉（上面那行往下疊上去），預設 76px 時字和圖示之間從 30px 變 15px。頁首高度、Logo 高度改了也跟著算；
   固定頁首（往下捲）和手機版沒有上面那行，不受影響。上面那行疊在主頁首上，所以只讓「我的帳號」本身接收點擊。 */
@media (min-width: 768px) {
	.rg-topbar { position: relative; z-index: 2; pointer-events: none; margin-bottom: calc(-1 * max(0px, (var(--rg-header-h, 76px) - max(46px, var(--rg-logo-h, 36px) * 1.1)) / 2)); }
	.rg-topbar__login { pointer-events: auto; }
}

/* 會員專區（我的帳號）：整頁米色底，中間一張白色大卡；登入／註冊置中一欄、大標題、全寬黑色按鈕、下面 3 個會員好處；
   登入後的選單和內容也放在白卡裡。只改外觀，表單、流程都是 WooCommerce 原本的。 */
body.rg-site.woocommerce-account .site-main { background: var(--rg-cream); }
body.rg-site.woocommerce-account .entry-content > .woocommerce { box-sizing: border-box; background: #fff; border-radius: 6px; padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 72px); }
body.rg-site.woocommerce-account:not(.rg-blocksy) .entry-content > .woocommerce { margin-bottom: clamp(32px, 5vw, 64px); }
body.rg-site.woocommerce-account .woocommerce input.input-text { border-radius: 6px; min-height: 50px; }
.rg-acct, body.rg-site.woocommerce-account .woocommerce > form.lost_reset_password { max-width: 480px; margin: 0 auto; }
.rg-acct__title { margin: 0 0 32px; font-family: var(--rg-serif); font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.35; letter-spacing: .12em; text-align: center; color: var(--rg-ink); }
/* WooCommerce 自己的「登入」「註冊」小標題：上面已經有大標題和分頁，只留給螢幕閱讀器 */
.rg-acct h2:not(.rg-acct__title) { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rg-acct .u-columns, .rg-acct #customer_login { display: block !important; }
.rg-site .rg-acct .u-column1, .rg-site .rg-acct .u-column2 { float: none !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.rg-site .rg-acct .u-column1, .rg-site .rg-acct .u-column2 { border-right: 0 !important; border-bottom: 0 !important; border-left: 0 !important; } /* 佈景在兩欄之間畫的虛線（電腦版直線、手機版橫線） */
.rg-acct .u-column2 { margin-top: 40px !important; padding-top: 32px !important; border-top: 1px solid var(--rg-line); } /* 沒有 JavaScript 時：註冊排在登入下面 */
.rg-acct--tabs .u-column2 { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
.rg-acct [hidden] { display: none !important; }
.rg-acct__tabs { display: grid; grid-template-columns: 1fr 1fr; margin: -8px 0 28px; border-bottom: 1px solid var(--rg-line); }
.rg-acct__tab { margin-bottom: -1px; padding: 12px 8px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--rg-muted); font: 500 16px/1.4 var(--rg-sans); letter-spacing: .14em; cursor: pointer; }
.rg-acct__tab[aria-selected="true"] { color: var(--rg-ink); border-bottom-color: var(--rg-ink); }
.rg-acct__tab:focus { outline: none; }
.rg-acct__tab:focus-visible { outline: 2px solid var(--rg-gold); outline-offset: -2px; }
.rg-site .woocommerce .rg-acct form.login, .rg-site .woocommerce .rg-acct form.register { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.rg-acct .form-row { margin-bottom: 18px; }
/* 全寬黑色按鈕（登入、註冊、忘記密碼） */
html body.rg-site .woocommerce .rg-acct button.button, html body.rg-site.woocommerce-account .woocommerce form.lost_reset_password button.button { display: block; width: 100%; min-height: 52px; margin: 22px 0 0; padding: 0 24px !important; float: none; border: 1px solid var(--rg-ink) !important; border-radius: 6px !important; background: var(--rg-ink); color: #fff; font: 500 16px/50px var(--rg-sans); letter-spacing: .24em; }
.rg-site .woocommerce .rg-acct button.button:hover, .rg-site.woocommerce-account .woocommerce form.lost_reset_password button.button:hover { background: #2a2622; color: #fff; }
.rg-acct .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; }
.rg-acct .woocommerce-form-login__rememberme input { margin: 0; }
.rg-acct .lost_password { margin: 18px 0 0; text-align: center; font-size: 14px; }
.rg-acct .lost_password a { color: var(--rg-text); }
/* 會員好處 */
.rg-acct__perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; padding: 32px 0 0; border-top: 1px solid var(--rg-line); list-style: none; text-align: center; }
.rg-acct__perks li { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; font-size: 14px; line-height: 1.6; letter-spacing: .06em; color: var(--rg-text); }
.rg-acct__perks li > span > span { display: block; }
.rg-acct__perk-icon { width: 38px; height: 38px; fill: none; stroke: var(--rg-gold); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
/* 會員專區裡的追蹤清單（會員專區網址加 ?view=wishlist）：內容欄比整頁窄，電腦、平板一排 3 張（手機照原本 2 張） */
.rg-site .woocommerce-MyAccount-content .rg-wishlist .rg-grid { grid-template-columns: repeat(3, 1fr); }
.rg-site .woocommerce-MyAccount-content .rg-wishlist__empty { padding: 24px 0; }
@media (max-width: 766.98px) {
	/* 0.4.1 把標題色塊下面第一個區塊的上方留白拿掉了；白卡本身的內距要留著 */
	body.rg-site.woocommerce-account .entry-content > .woocommerce,
	html body.rg-site.woocommerce-account .hero-section[data-type] + .ct-container-full > article > .entry-content > .woocommerce:first-child { padding: 32px 20px 36px !important; }
	.rg-acct__perks { gap: 10px; }
	.rg-acct__perks li { font-size: 12.5px; letter-spacing: .02em; }
	.rg-acct__perk-icon { width: 32px; height: 32px; }
	.rg-site .woocommerce-MyAccount-content .rg-wishlist .rg-grid { grid-template-columns: repeat(2, 1fr); }
	/* 登入後的訂單表（手機一筆一張）：字不要貼著外框 */
	.rg-site.woocommerce-account .woocommerce table.shop_table_responsive tr td { padding-left: 14px !important; padding-right: 14px !important; }
}

/* ========== 0.4.3 ========== */

/* 手機菜單的關閉鈕（×）：滑鼠、觸控、鍵盤都不畫框。鍵盤移到這顆時改成 × 變金色、線條變粗，看得出焦點在這裡。
   其他按鈕、連結（包括菜單裡的 RUCHU GOLD）的焦點樣式照舊。 */
html body .rg-drawer__close:focus, html body .rg-drawer__close:focus-visible { outline: none; box-shadow: none; }
.rg-drawer__close .rg-icon { transition: color .15s, stroke-width .15s; }
html body .rg-drawer__close:focus-visible { color: var(--rg-gold); }
html body .rg-drawer__close:focus-visible .rg-icon { stroke-width: 2.6; }

/* 會員專區：「會員專區」標題到下面白卡的距離＝頁首到標題的距離。標題色塊本身上下對稱，所以把色塊下面內容區的上方留白
   （Blocksy 電腦、平板原本 60px；手機 0.4.1 起是 0）換成 1–3px：標題字在自己那一行裡稍微偏下（字 20px 時偏 1px、24px 時偏 3px），
   白卡往下同樣的量，看得到的空白才上下一樣（標題字大小和上面「13／14」那條一樣：clamp(20px, 1.7vw, 24px)）。
   登入前（登入／加入會員）、登入後（控制台、訂單、追蹤清單…）都是同一張白卡。其他頁不變。 */
body.rg-blocksy.woocommerce-account .hero-section[data-type="type-2"] + .ct-container-full { padding-top: calc((clamp(20px, 1.7vw, 24px) - 18px) / 2) !important; }
body.rg-blocksy.woocommerce-account .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > .woocommerce:first-child { margin-top: 0 !important; }

/* 登入卡：有開放註冊時上面不放「登入或加入會員」大標題，分頁直接在卡片最上面。
   分頁字上方的留白＝白卡內距（和卡片下方一樣），不多一塊空白。沒開放註冊時的「會員登入」標題照舊。 */
.rg-acct--register .rg-acct__tabs { margin-top: -12px; }

/* ========== 0.4.4 ========== */

/* 說明類頁面（使用條款、訂購說明、會員權益、常見問題…，判斷條件見 class-blocksy.php 的 is_doc_page()，body 會有 rg-doc）：
   頁面標題色塊和下面整片都是同一個米色（--rg-cream，和標題色塊、會員專區同色，接成一片沒有白縫），中間的內文放在白色區塊裡。
   白色區塊：電腦最寬 1080px 置中（1440 時左右各露 180px 米色）；比較窄的螢幕和 Blocksy 內容寬度一樣（左右各露約 5–6%，和會員專區白卡對齊）。
   內距：電腦 64px，往下按螢幕寬度縮，手機上下 32／36px、左右 20px（和會員專區白卡一樣）。
   標題到白色區塊、白色區塊到頁尾的距離和會員專區一樣（標題上下看起來一樣寬；到頁尾電腦 60px、手機 50px，是 Blocksy 原本的內容區下方留白）。
   只在頁面上面有 Blocksy 米色標題色塊（type-2）時作用。 */
body.rg-blocksy.rg-doc { --rg-doc-title: clamp(20px, 1.7vw, 24px); /* ＝頁面標題（色塊裡那行）的字級，見 0.4.1「頁面標題色塊」 */ }
body.rg-blocksy.rg-doc .hero-section[data-type="type-2"] { background-color: var(--rg-cream); }
body.rg-blocksy.rg-doc:has(.hero-section[data-type="type-2"]) :is(#main-container, .site-main) { background: var(--rg-cream); } /* 內容比螢幕短時，頁尾上面那段也是米色（不會多一條白色） */
html body.rg-blocksy.rg-doc .hero-section[data-type="type-2"] + .ct-container-full { background: var(--rg-cream); padding-top: calc((var(--rg-doc-title) - 18px) / 2) !important; }
body.rg-blocksy.rg-doc .hero-section[data-type="type-2"] + .ct-container-full > article { box-sizing: border-box; width: min(1080px, var(--theme-container-width, 88vw)); max-width: 100%; margin: 0 auto; padding: clamp(32px, 4.4vw, 64px) clamp(20px, 4.4vw, 64px) clamp(36px, 4.4vw, 64px); background: #fff; border-radius: 6px; }
/* 白色區塊裡第一個、最後一個東西不再多留白（白色區塊的內距就是上下的空白）；0.4.1 手機版「第一行字補行距」那條在白色區塊裡不需要 */
html body.rg-blocksy.rg-doc .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > :first-child,
html body.rg-blocksy.rg-doc .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > .rg-about > :first-child { margin-top: 0 !important; padding-top: 0 !important; }
html body.rg-blocksy.rg-doc .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > :last-child,
html body.rg-blocksy.rg-doc .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > .rg-about > :last-child { margin-bottom: 0 !important; padding-bottom: 0 !important; }
body.rg-blocksy.rg-doc .hero-section[data-type="type-2"] + .ct-container-full .rg-about { padding: 0; } /* 品牌理念頁：外面已經有白色區塊的內距 */

/* 內文標題：h1、h2 和頁面標題一樣大（電腦 24px、手機 20px，中間按螢幕寬度）；h3 比 h2 小一級、h4–h6 再小一級。
   字型、粗細、顏色、字距照原本（0.2.x 的「頁面標題、內文標題」那條）；行高、上下間距原本就跟著字級（em），一起縮。
   Elementor 的標題元件（.elementor-heading-title）用她在 Elementor 裡設的大小，不動。 */
html body.rg-blocksy.rg-doc .ct-container-full .entry-content :is(h1, h2):not(.elementor-heading-title) { font-size: var(--rg-doc-title); }
html body.rg-blocksy.rg-doc .ct-container-full .entry-content h3:not(.elementor-heading-title):not(.rg-about *) { font-size: clamp(17px, 1.4vw, 20px); }
html body.rg-blocksy.rg-doc .ct-container-full .entry-content :is(h4, h5, h6):not(.elementor-heading-title):not(.rg-about *) { font-size: clamp(16px, 1.2vw, 17px); }

/* 「關於如初」品牌頁版面（.rg-story，外觀 → 如初首頁 → 關於如初頁的版面；也可以從區塊編輯器「版面 → 如初」插入）：只有文字。
   風格接首頁：整頁米色（和標題色塊接成一片）、襯線大標、金色小標和細線、白色圓角區塊、留白；電腦最寬 1080px，手機一欄。 */
body.rg-blocksy:has(.rg-story) :is(#main-container, .site-main), .rg-site:has(.rg-story) .qa-main { background: var(--rg-cream); }
body.rg-blocksy:has(.rg-story) .hero-section[data-type="type-2"] { background-color: var(--rg-cream); }
.rg-story { box-sizing: border-box; width: min(1080px, var(--theme-container-width, 88vw)) !important; max-width: 1080px !important; margin: 0 auto !important; padding: 0 0 clamp(16px, 3vw, 40px); color: var(--rg-text); font-family: var(--rg-sans); }
.rg-story > * + * { margin-top: clamp(40px, 6vw, 80px) !important; }
.rg-story p { margin: 0; line-height: 2.05; letter-spacing: .06em; }
.rg-story p + p { margin-top: 1em; }
.rg-story .rg-story__eyebrow, .rg-story .rg-story__kicker { margin: 0 0 14px; font-family: var(--rg-serif); font-size: clamp(12px, 1vw, 14px); letter-spacing: .3em; color: var(--rg-gold); text-transform: uppercase; line-height: 1.6; }
html body .rg-story h2.rg-story__title { margin: 0; font-family: var(--rg-serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.75; letter-spacing: .12em; color: var(--rg-ink); }
html body .rg-story h2.rg-story__heading { margin: 0 0 20px; font-family: var(--rg-serif); font-weight: 600; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.5; letter-spacing: .14em; color: var(--rg-ink); }
html body .rg-story h3.rg-story__card-title { margin: 0 0 14px; font-family: var(--rg-serif); font-weight: 600; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; letter-spacing: .12em; color: var(--rg-ink); }
/* 1. 開場：置中、寬度收窄，兩行祝福用上下金色細線框起來 */
.rg-story__intro { max-width: 720px; margin-left: auto; margin-right: auto; padding: clamp(8px, 2vw, 24px) 0 0; text-align: center; }
.rg-story .rg-story__lead { margin-top: 28px; font-family: var(--rg-serif); font-size: clamp(15px, 1.3vw, 17px); color: var(--rg-text); }
.rg-story .rg-story__wish { display: inline-block; margin-top: 32px; padding: 18px clamp(12px, 3vw, 44px); border-top: 1px solid var(--rg-gold-soft); border-bottom: 1px solid var(--rg-gold-soft); font-family: var(--rg-serif); font-size: clamp(15px, 1.3vw, 18px); line-height: 2; letter-spacing: .2em; color: var(--rg-ink); }
/* 2. 送黃金的用意：白色圓角區塊，左邊小標＋標題（金色直線隔開），右邊兩段內文；手機上下排 */
.rg-story .rg-story__split { gap: 0 !important; margin-bottom: 0; padding: clamp(32px, 5vw, 72px) clamp(22px, 5vw, 72px); background: #fff; border-radius: var(--rg-radius); }
.rg-story .rg-story__split > .rg-story__side { padding-right: clamp(0px, 3vw, 44px); }
.rg-story .rg-story__split .rg-story__heading { margin-bottom: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.6; }
/* 3. 三個堅持：白色卡片一排 3 張，上面金色序號和細線 */
.rg-story__values { text-align: center; }
.rg-story .rg-story__cards { gap: clamp(16px, 2vw, 28px) !important; margin: 12px 0 0; text-align: left; }
.rg-story .rg-story__card { padding: clamp(26px, 2.8vw, 40px) clamp(22px, 2.4vw, 34px) clamp(28px, 3vw, 40px); background: #fff; border-radius: var(--rg-radius); border-top: 2px solid var(--rg-gold-soft); }
.rg-story .rg-story__card p { font-size: 14.5px; }
.rg-story .rg-story__num { margin: 0 0 18px; font-family: var(--rg-serif); font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: .08em; color: var(--rg-gold); }
/* 4. 品牌故事：置中，左右金色細線的引言樣子 */
.rg-story__note { max-width: 760px; margin-left: auto !important; margin-right: auto !important; padding: clamp(32px, 4vw, 52px) clamp(8px, 3vw, 40px); border-top: 1px solid var(--rg-gold-soft); border-bottom: 1px solid var(--rg-gold-soft); text-align: center; }
.rg-story__note p:not(.rg-story__kicker) { font-family: var(--rg-serif); font-size: clamp(15px, 1.3vw, 17px); }
/* 5. 結尾按鈕 */
.rg-story__cta { text-align: center; }
.rg-story :is(.rg-story__lead, .rg-story__cta-text, .rg-story__note p) { text-wrap: pretty; }
.rg-story .rg-story__cta-text { text-wrap: balance; margin: -6px 0 26px; font-family: var(--rg-serif); letter-spacing: .14em; color: var(--rg-text); }
.rg-story .rg-story__buttons { justify-content: center; gap: 14px; }
html body .rg-story .rg-story__buttons .wp-block-button__link { box-sizing: border-box; min-width: 180px; padding: 14px 36px; border: 1px solid var(--rg-gold-btn); border-radius: 6px; background: var(--rg-gold-btn); color: #fff; font-family: var(--rg-sans); font-size: 15px; letter-spacing: .2em; text-align: center; }
html body .rg-story .rg-story__buttons .is-style-outline .wp-block-button__link { padding: 14px 36px; background: transparent; color: var(--rg-ink); border-color: var(--rg-ink); }
.rg-story .rg-story__buttons .wp-block-button__link:hover { background: var(--rg-gold-btn-hover); border-color: var(--rg-gold-btn-hover); color: #fff; }
@media (min-width: 782px) {
	.rg-story .rg-story__split > .rg-story__side { flex-basis: 34% !important; border-right: 1px solid var(--rg-gold-soft); }
	.rg-story .rg-story__split > .rg-story__body { flex-basis: 66% !important; padding-left: clamp(28px, 4vw, 56px); }
}
@media (max-width: 781.98px) {
	.rg-story .rg-story__split > .rg-story__side { padding: 0 0 18px; margin-bottom: 20px; border-bottom: 1px solid var(--rg-gold-soft); }
	.rg-story .rg-story__cards { gap: 16px !important; }
	.rg-story__note { padding-left: 4px; padding-right: 4px; }
}

/* ========== 0.4.5 ========== */

/* 關於如初（.rg-story）頁最上面的頁面標題「關於如初」：標題上面（頁首底 → 標題字頂）＝標題下面（標題字底 → 開場小標字頂）。
   標題色塊本身上下對稱，所以把色塊下面內容區的上方留白（Blocksy 電腦、平板 60px）和開場區塊的上方留白拿掉，
   再把開場小標往上提一點，抵掉小標自己行高多出來的空白（標題字 20px 時提 5px、24px 時提 3px；標題字大小同 0.4.1「頁面標題色塊」：clamp(20px, 1.7vw, 24px)）。
   實測 390／768／1024／1440 上下都是 33px（1440 是 32.5px）。只在版面是頁面第一個區塊時這樣排（下面三條都一樣）；她在版面上面另外放了東西（例如一段文字或圖片），內容區留白和開場間距都照原本的。 */
html body.rg-blocksy:has(.hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > .rg-story:first-child) .hero-section[data-type="type-2"] + .ct-container-full { padding-top: 0 !important; }
html body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > .rg-story:first-child > .rg-story__intro:first-child { padding-top: 0 !important; margin-top: calc((clamp(20px, 1.7vw, 24px) - 30px) / 2) !important; }
/* 她在版面最上面（開場之前）插了圖片之類的區塊：離標題色塊留和標題上面差不多的空白，不貼著色塊 */
html body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > .rg-story:first-child > :first-child:not(.rg-story__intro) { margin-top: 28px !important; }
/* 她自己在關於如初版面裡插的圖片：置中、圓角和白色區塊一樣，寬度不超過版面（「寬幅寬度」「全幅寬度」照編輯器的設定） */
.rg-story .wp-block-image { text-align: center; }
.rg-story .wp-block-image img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--rg-radius); }
.rg-story .wp-block-image figcaption { margin-top: 10px; font-size: 13px; color: var(--rg-muted); letter-spacing: .06em; }
.rg-story .wp-block-image:not(.alignwide):not(.alignfull) img { max-width: min(100%, 720px); } /* 一般寬度的圖片最寬 720px，不會一張正方形圖佔滿整個畫面；要更寬請在編輯器「對齊方式」選「寬幅寬度」 */

/* ========== 0.4.6 ========== */

/* 送禮推薦頁（頁面裡第一個區塊是送禮推薦表單 .rg-gf）電腦、平板（767px 以上）：標題「送禮推薦」上下看得到的空白一樣（頁首底 → 標題字頂＝標題字底 → 白色卡片上緣）。
   手機 0.4.1 已經是這樣，這裡照同一個規則做電腦、平板，做法和 0.4.3 會員專區一樣：標題色塊本身上下對稱，
   把色塊下面內容區的上方留白（Blocksy 原本 60px）換成 1–3px（標題字在自己那一行裡稍微偏下：字 20px 時偏 1px、24px 時偏 3px；標題字大小 clamp(20px, 1.7vw, 24px)）。
   只改送禮推薦頁；手機（767px 以下）照 0.4.1 不變。 */
@media (min-width: 767px) {
	html body.rg-blocksy:has(.hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > .rg-gf:first-child) .hero-section[data-type="type-2"] + .ct-container-full { padding-top: calc((clamp(20px, 1.7vw, 24px) - 18px) / 2) !important; }
	html body.rg-blocksy .hero-section[data-type="type-2"] + .ct-container-full > article > .entry-content > .rg-gf:first-child { margin-top: 0 !important; }
}
