/* =========================================================
   Gemistry Aesop — 共用變數與歸零（所有小工具都依賴本檔）
   - 配色 = aesop.com（2026-09 Wayback 存檔實測）；品牌色 --gemistry-ap-accent #b26d70 只當點綴
   - 版面逐區塊改照 aesop.com；尚未重做的區塊暫用 gemistry-chanel 版面
   - 字型（1.18.0 品牌規範）：大標題 Montserrat Bold 700、中標題 Montserrat SemiBold 600、內文 / 小字 Helvetica Neue Light 300
     Montserrat 隨外掛打包（assets/fonts，只含拉丁字元，OFL）；Helvetica Neue 是 Mac / iOS 系統字，不可打包，Windows 退回 Arial
     大標題 / 中標題用 --gemistry-ap-font-heading；--gemistry-ap-font-display 保留為它的別名
   - 中文：思源黑體 Noto Sans CJK TC（1.17.0），隨外掛打包在 assets/fonts（OFL 授權，見 OFL.txt）
     只含 Big5 常用字 + 粵語常用字 + 網站用到的字（約 5,900 字），每個字重約 1MB；缺的字退回蘋方 / 微軟正黑
     300 / 400 / 500 / 700 四個字重，瀏覽器只下載頁面上實際用到的字重；600 會用 700
     檔案授權：OFL-noto-sans-tc.txt、OFL-montserrat.txt
   - 顏色固定 Aesop 色票；要改就改下方變數
   ========================================================= */

@font-face {
	font-family: "Gemistry AP Montserrat";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/montserrat-600.woff2") format("woff2");
}

@font-face {
	font-family: "Gemistry AP Montserrat";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/montserrat-700.woff2") format("woff2");
}

@font-face {
	font-family: "Gemistry AP Noto Sans TC";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: local("Noto Sans CJK TC Light"), local("NotoSansCJKtc-Light"), url("../fonts/noto-sans-tc-light.woff2") format("woff2");
}

@font-face {
	font-family: "Gemistry AP Noto Sans TC";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: local("Noto Sans CJK TC Regular"), local("NotoSansCJKtc-Regular"), url("../fonts/noto-sans-tc-regular.woff2") format("woff2");
}

@font-face {
	font-family: "Gemistry AP Noto Sans TC";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: local("Noto Sans CJK TC Medium"), local("NotoSansCJKtc-Medium"), url("../fonts/noto-sans-tc-medium.woff2") format("woff2");
}

@font-face {
	font-family: "Gemistry AP Noto Sans TC";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: local("Noto Sans CJK TC Bold"), local("NotoSansCJKtc-Bold"), url("../fonts/noto-sans-tc-bold.woff2") format("woff2");
}

.gemistry-ap {
	--gemistry-ap-black: #333333;
	--gemistry-ap-pure-black: #000000;
	--gemistry-ap-ink: #252525;
	--gemistry-ap-white: #fffef2;
	--gemistry-ap-gray: #666666;
	--gemistry-ap-gray-light: #67645e;
	--gemistry-ap-line: #ebeade;
	--gemistry-ap-soft: #f6f5e8;
	--gemistry-ap-sand: #efe8d8;
	--gemistry-ap-olive: #545649;
	--gemistry-ap-accent: #b26d70;
	--gemistry-ap-font: "Helvetica Neue", Helvetica, Arial, "Gemistry AP Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
	/* 大標題（700）/ 中標題（600）：Montserrat；中文退回思源黑體 */
	--gemistry-ap-font-heading: "Gemistry AP Montserrat", Montserrat, "Gemistry AP Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
	--gemistry-ap-font-display: var(--gemistry-ap-font-heading);
	--gemistry-ap-ease: cubic-bezier(.4, 0, .2, 1);
}

.gemistry-ap.gemistry-ap-scope,
.gemistry-ap-scope.gemistry-ap-scope .gemistry-ap {
	font-family: var(--gemistry-ap-font);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

/* 小工具外層包住內部元素的外距：否則第一個子元素的 margin-top（例如結帳標題）會穿出外層，
   在小工具上方露出 body 的白底（Hello 主題 body 是白色，小工具自己畫米色底）。個別小工具設了 display 時以它為準。 */
.gemistry-ap.gemistry-ap-scope { display: flow-root; }

/* 不依賴佈景主題的 box-sizing（尺寸照原站的 border-box 量測） */
.gemistry-ap-scope.gemistry-ap-scope,
.gemistry-ap-scope.gemistry-ap-scope *,
.gemistry-ap-scope.gemistry-ap-scope *::before,
.gemistry-ap-scope.gemistry-ap-scope *::after { box-sizing: border-box; }

.gemistry-ap-scope.gemistry-ap-scope :is(p, ul, h1, h2, h3) {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gemistry-ap-scope.gemistry-ap-scope a {
	color: inherit;
	text-decoration: none;
}

/* 滿版小工具（頁首、頁尾、主視覺橫幅、常見問題、聯絡我們、關於我們、人物故事、商品、購物車、結帳、404、我的帳戶、1.2.0 首頁 6 個區塊）撐滿視窗寬度，貼齊螢幕邊緣（WoodMart .container 左右 15px 內距、Elementor 容器內距都不影響）。
   --gemistry-ap-vw 由 JS 設為不含捲軸的視窗寬度（沒有 JS 時用 100vw）。
   權重要高過 Elementor Pro 的 .elementor.elementor .e-con > .elementor-widget { max-width: 100% }（0,4,0，且載入順序在後）
   與單一小工具自訂寬度（0,3,0），所以用 0,5,0。同權重時 max-width 會被壓回 100%：左邊貼齊、右邊少 30px。 */
.elementor-element.elementor-element.elementor-widget.elementor-widget:is(.elementor-widget-gemistry-apothecary-header, .elementor-widget-gemistry-apothecary-footer, .elementor-widget-gemistry-apothecary-hero, .elementor-widget-gemistry-apothecary-faq, .elementor-widget-gemistry-apothecary-contact, .elementor-widget-gemistry-apothecary-about, .elementor-widget-gemistry-apothecary-founder, .elementor-widget-gemistry-apothecary-product, .elementor-widget-gemistry-apothecary-cart, .elementor-widget-gemistry-apothecary-checkout, .elementor-widget-gemistry-apothecary-404, .elementor-widget-gemistry-apothecary-account, .elementor-widget-gemistry-apothecary-products, .elementor-widget-gemistry-apothecary-categories, .elementor-widget-gemistry-apothecary-media-text, .elementor-widget-gemistry-apothecary-features, .elementor-widget-gemistry-apothecary-articles, .elementor-widget-gemistry-apothecary-quote, .elementor-widget-gemistry-apothecary-catalog, .elementor-widget-gemistry-apothecary-video, .elementor-widget-gemistry-apothecary-welcome) {
	flex: 0 0 auto;
	width: var(--gemistry-ap-vw, 100vw);
	max-width: none;
	margin-inline: calc(50% - var(--gemistry-ap-vw, 100vw) / 2);
}

/* 主題與 Elementor 的全域按鈕樣式全部歸零；:where() 讓各元件的 display 等設定能覆蓋 */
.gemistry-ap-scope.gemistry-ap-scope :where(button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: none;
	cursor: pointer;
}

.gemistry-ap-scope.gemistry-ap-scope :where(button):hover,
.gemistry-ap-scope.gemistry-ap-scope :where(button):focus {
	background: none;
	color: inherit;
}

.gemistry-ap-scope.gemistry-ap-scope :is(a, button, input):focus-visible {
	outline: 1px solid var(--gemistry-ap-accent, currentColor);
	outline-offset: 2px;
}

.gemistry-ap-scope.gemistry-ap-scope .gemistry-ap-icon {
	display: block;
	flex: 0 0 auto;
	width: var(--gemistry-ap-icon, 20px);
	height: var(--gemistry-ap-icon, 20px);
}

.gemistry-ap-scope.gemistry-ap-scope .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
