/* tomo loop 品牌樣式：奶油底、深棕灰文字、海島藍綠點綴（色盤由 seed/brand.php 設定 Kadence palette） */
:root {
	--tomo-cream: #FAF6EF;
	--tomo-cream-deep: #F1E9DB;
	--tomo-ink: #3B322C;
	--tomo-text: #4A403A;
	--tomo-teal: #2F6F73;
	--tomo-teal-light: #5E9EA0;
	--tomo-line: rgba(94, 158, 160, 0.28);
}

/* 全站：文字與標題 */
body { color: var(--tomo-text); }
body h1, body h2, body h3, body h4, body h5, body h6 { font-weight: 600; letter-spacing: 0.04em; color: var(--tomo-ink); }
body h1 { letter-spacing: 0.06em; }
.content-bg, body.content-style-unboxed .site { background: #FFFDF9; }
.entry.single-entry, .entry.loop-entry { box-shadow: 0 10px 24px -14px rgba(59, 50, 44, 0.18); }

/* 連結、按鈕、表單 focus（取代 Kadence 預設藍） */
a { text-underline-offset: 0.18em; }
button, .button, .wp-block-button__link, input[type="button"], input[type="reset"], input[type="submit"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	border-radius: 8px; letter-spacing: 0.06em; font-weight: 600;
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce a.button, .woocommerce button.button {
	background-color: var(--tomo-teal); color: #fff;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background-color: #245A5E; color: #fff;
}
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], textarea, select { border-color: #E2D8C8; background-color: #FFFDF9; }
input:focus, textarea:focus, select:focus, .select2-container--open .select2-selection {
	border-color: var(--tomo-teal-light) !important; outline: none;
	box-shadow: 0 0 0 3px rgba(94, 158, 160, 0.25);
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--tomo-teal-light); outline-offset: 2px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--tomo-teal); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--tomo-teal); }
.woocommerce span.onsale { background: var(--tomo-teal); color: #fff; }

/* 頁首 */
#masthead, #masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start):not(.site-header-row-container):not(.site-main-header-wrap),
#masthead .kadence-sticky-header.item-is-fixed:not(.item-at-start) > .site-header-row-container-inner { background: var(--tomo-cream); }
#masthead { border-bottom: 1px solid var(--tomo-line); }
.site-branding .site-title { line-height: 0; }
.site-branding a.brand { display: inline-flex; align-items: center; }
.tomo-logo { display: block; height: 42px; width: 160px; }
#mobile-header .tomo-logo { height: 32px; width: 122px; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { font-size: 15px; letter-spacing: 0.08em; color: var(--tomo-text); }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a { color: var(--tomo-teal); }

/* 選單 icon 與購物車徽章 */
.tomo-nav-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--tomo-text); }
.tomo-nav-icon:hover { color: var(--tomo-teal); }
.tomo-nav-icon .tomo-icon { width: 22px; height: 22px; }
.tomo-nav-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tomo-cart-badge {
	position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box;
	border-radius: 999px; background: var(--tomo-teal); color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
}
.tomo-cart-badge[hidden] { display: none; }
button.tomo-nav-icon { background: none; border: 0; cursor: pointer; font: inherit; box-shadow: none; }
button.tomo-nav-icon:hover, button.tomo-nav-icon:focus { background: none; color: var(--tomo-teal); box-shadow: none; }
.header-navigation .tomo-nav-icon { padding: 0.6em 0.9em; }
/* 帳號下拉（桌機）／展開清單（抽屜） */
.header-navigation li.tomo-menu-account { position: relative; }
#tomo-header-account-menu {
	position: absolute; top: 100%; right: 0; z-index: 9999; min-width: 150px; margin: 6px 0 0; padding: 6px; list-style: none;
	background: var(--tomo-cream); border: 1px solid var(--tomo-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(59, 50, 44, 0.12);
}
#tomo-header-account-menu[hidden] { display: none; }
#tomo-header-account-menu li { margin: 0; padding: 0; }
#tomo-header-account-menu a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--tomo-text); font-size: 15px; letter-spacing: 0.06em; white-space: nowrap; text-decoration: none; }
#tomo-header-account-menu a:hover, #tomo-header-account-menu a:focus-visible { background: var(--tomo-cream-deep); color: var(--tomo-teal); }
#tomo-header-account-menu li.is-active a { color: var(--tomo-teal); font-weight: 600; }
#tomo-drawer-account-menu { list-style: none; margin: 0; padding: 0 0 0 1.9em; }
#tomo-drawer-account-menu li.is-active a { color: var(--tomo-teal); }
.header-navigation .tomo-cart-badge { top: 2px; right: 2px; }

/* 社群 icon */
.tomo-social { display: inline-flex; align-items: center; gap: 4px; }
.tomo-social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--tomo-teal); transition: background 0.2s, color 0.2s; }
.tomo-social-link .tomo-icon { width: 22px; height: 22px; }
.tomo-social-link:hover, .tomo-social-link:focus-visible { background: var(--tomo-teal); color: var(--tomo-cream); }
.tomo-header-social { margin-left: 0.4rem; padding-left: 0.9rem; border-left: 1px solid var(--tomo-line); }
.site-header-main-section-right { align-items: center; }

/* 手機：頁首購物車、抽屜選單 */
#tomo-mobile-cart-item { margin-right: 0.4rem; }
#tomo-mobile-cart { width: 40px; height: 40px; }
#tomo-mobile-cart .tomo-cart-badge { top: 3px; right: 1px; }
#mobile-drawer .drawer-inner { background: var(--tomo-cream); }
#mobile-drawer .drawer-header .drawer-toggle, #mobile-drawer .drawer-header .drawer-toggle:hover { color: var(--tomo-text); }
.mobile-navigation ul li > a, .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap { color: var(--tomo-text); font-size: 16px; letter-spacing: 0.08em; }
.mobile-navigation ul li.current-menu-item > a { color: var(--tomo-teal); }
.mobile-navigation ul li.menu-item-has-children .drawer-nav-drop-wrap, .mobile-navigation ul li:not(.menu-item-has-children) a { border-bottom: 1px solid var(--tomo-line); }
.mobile-navigation .tomo-nav-icon { display: flex; justify-content: flex-start; gap: 0.7em; }
.mobile-navigation .tomo-nav-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
.mobile-navigation .tomo-cart-badge { position: static; margin-left: 0.2em; }
#tomo-drawer-social { margin-top: 1.6rem; margin-left: -0.5rem; }

/* 頁尾 */
.site-footer, .site-footer .site-footer-row-container-inner { background: var(--tomo-cream-deep); }
.site-footer { border-top: 1px solid var(--tomo-line); }
.site-bottom-footer-inner-wrap { padding-top: 44px; padding-bottom: 28px; }
.tomo-footer { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; }
.tomo-footer-brand { display: inline-block; line-height: 0; }
.tomo-footer-brand img { height: 44px; width: 168px; }
.tomo-footer p { margin: 0; }
.tomo-footer-tagline { color: var(--tomo-text); font-size: 15px; letter-spacing: 0.12em; }
.tomo-footer-copy { margin-top: 0.4rem !important; padding-top: 0.9rem; width: min(360px, 80%); border-top: 1px solid var(--tomo-line); color: #8A7E74; font-size: 13px; letter-spacing: 0.08em; }

@media all and (max-width: 1024px) {
	.tomo-header-social { display: none; }
}
