/*
Theme Name: GreenHao Light
Theme URI: https://www.greenhao.com/
Author: GreenHao
Description: 綠騎士輕量自建主題。原生 PHP + CSS，無頁面編輯器依賴，保留 WooCommerce 立即下單（貨到付款）流程，不顯示購物車。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: Private
Text Domain: greenhao-light
Tags: e-commerce
*/

/* ==========================================================================
   1. Tokens & base
   ========================================================================== */
:root {
	--ink: #0f1c2e;
	--ink-2: #182a42;
	--ink-3: #243a57;
	--gold: #c9a15a;
	--gold-deep: #a9823f;
	--gold-pale: #f6edda;
	--paper: #faf7f1;
	--white: #ffffff;
	--text: #242b34;
	--muted: #6d7480;
	--line: #e7dfd1;
	--red: #c0203a;
	--red-deep: #96182c;
	--radius: 18px;
	--container: 1180px;
	--font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.gh-nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--ink);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	margin: 0 0 1em;
	padding-left: 1.35em;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

.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;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: 10px 18px;
	clip: auto;
	background: var(--ink);
	color: #fff;
	z-index: 100000;
}

/* ==========================================================================
   2. Layout
   ========================================================================== */
.gh-container {
	width: min(var(--container), calc(100% - 48px));
	margin-left: auto;
	margin-right: auto;
}

.gh-container.gh-narrow {
	width: min(860px, calc(100% - 48px));
}

.gh-main {
	min-height: 50vh;
}

.gh-woo {
	padding-bottom: 70px;
}

/* Admin bar offsets for the sticky header */
body.admin-bar .gh-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .gh-header {
		top: 46px;
	}
}

/* ==========================================================================
   3. Top bar
   ========================================================================== */
.gh-topbar {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
	font-size: 12.5px;
	letter-spacing: 0.08em;
}

.gh-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	padding-top: 9px;
	padding-bottom: 9px;
}

.gh-topbar span {
	display: inline-flex;
	align-items: center;
}

.gh-topbar span + span::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 11px;
	margin: 0 16px;
	background: rgba(255, 255, 255, 0.24);
}

/* ==========================================================================
   4. Header & navigation
   ========================================================================== */
.gh-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: saturate(1.5) blur(12px);
	-webkit-backdrop-filter: saturate(1.5) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.25s ease;
}

.gh-header.is-scrolled {
	box-shadow: 0 12px 34px rgba(15, 28, 46, 0.09);
}

.gh-header-inner {
	display: flex;
	align-items: center;
	gap: 22px;
	height: 78px;
}

.gh-logo {
	flex: 0 0 auto;
}

.gh-logo img {
	display: block;
	width: auto;
	max-height: 48px;
}

.gh-logo .custom-logo-link {
	display: block;
}

.gh-logo-text {
	display: inline-flex;
	flex-direction: column;
	line-height: 1;
}

.gh-logo-text strong {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.18em;
	color: var(--ink);
}

.gh-logo-text span {
	margin-top: 5px;
	font-size: 9px;
	letter-spacing: 0.32em;
	color: var(--gold-deep);
}

.gh-nav {
	margin-left: auto;
}

.gh-nav ul {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gh-nav li {
	position: relative;
}

.gh-nav a {
	display: block;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.gh-nav a:hover,
.gh-nav a:focus-visible {
	color: var(--gold-deep);
	background: var(--gold-pale);
}

.gh-nav .current-menu-item > a,
.gh-nav .current_page_item > a,
.gh-nav .current-menu-ancestor > a {
	color: var(--gold-deep);
	background: var(--gold-pale);
}

.gh-nav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	display: none;
	min-width: 210px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 20px 48px rgba(15, 28, 46, 0.12);
}

.gh-nav li:hover > .sub-menu,
.gh-nav li:focus-within > .sub-menu {
	display: block;
}

.gh-nav .sub-menu a {
	padding: 9px 12px;
	border-radius: 9px;
	font-size: 14px;
}

.gh-header-cta {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 7px;
	padding: 11px 22px;
	background: var(--gold);
	color: var(--ink);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.04em;
	box-shadow: 0 10px 24px rgba(169, 130, 63, 0.28);
}

.gh-header-cta:hover {
	background: var(--gold-deep);
	color: #fff;
	transform: translateY(-1px);
}

.gh-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0 11px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	cursor: pointer;
}

.gh-burger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.gh-burger.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.gh-burger.is-active span:nth-child(2) {
	opacity: 0;
}

.gh-burger.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.gh-mobile-panel {
	display: none;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding: 8px 20px 22px;
	background: #fff;
	border-top: 1px solid var(--line);
}

.gh-mobile-panel.is-open {
	display: block;
}

.gh-mobile-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gh-mobile-panel li {
	border-bottom: 1px solid var(--line);
}

.gh-mobile-panel a {
	display: block;
	padding: 14px 4px;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
}

.gh-mobile-panel .gh-btn {
	width: 100%;
	margin-top: 18px;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.gh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 30px;
	border: 0;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.gh-btn:hover {
	transform: translateY(-2px);
}

.gh-btn-gold {
	background: var(--gold);
	color: var(--ink);
	box-shadow: 0 12px 26px rgba(169, 130, 63, 0.28);
}

.gh-btn-gold:hover {
	background: var(--gold-deep);
	color: #fff;
}

.gh-btn-ghost {
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
}

.gh-btn-ghost:hover {
	border-color: var(--gold);
	color: var(--gold-deep);
}

/* Content (block) buttons */
.wp-block-button__link {
	padding: 14px 40px !important;
	background: var(--gold) !important;
	color: var(--ink) !important;
	border-radius: 999px !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	box-shadow: 0 12px 26px rgba(169, 130, 63, 0.25);
	transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.wp-block-button__link:hover {
	background: var(--gold-deep) !important;
	color: #fff !important;
	transform: translateY(-2px);
}

/* ==========================================================================
   6. Front page / block content
   ========================================================================== */
.gh-front {
	padding-bottom: 30px;
}

.gh-front-content > * {
	margin-left: auto;
	margin-right: auto;
}

.gh-front-content > .wp-block-heading,
.gh-front-content > .wp-block-paragraph,
.gh-front-content > .wp-block-buttons {
	max-width: 880px;
	padding-left: 24px;
	padding-right: 24px;
}

.gh-front-content > .wp-block-heading {
	margin-top: 62px;
	margin-bottom: 8px;
	font-size: clamp(24px, 3vw, 32px);
	letter-spacing: 0.03em;
}

.gh-front-content > .wp-block-heading.has-text-align-center::after {
	content: "";
	display: block;
	width: 46px;
	height: 3px;
	margin: 16px auto 0;
	background: var(--gold);
	border-radius: 2px;
}

.gh-front-content > .wp-block-paragraph {
	color: var(--muted);
}

/* Hero cover */
.gh-front-content .wp-block-cover {
	min-height: clamp(400px, 62vh, 640px) !important;
	padding-top: 72px !important;
	padding-bottom: 72px !important;
}

.gh-front-content .wp-block-cover__inner-container {
	max-width: 960px;
}

.gh-front-content .wp-block-cover p {
	letter-spacing: 0.06em;
	text-shadow: 0 3px 24px rgba(0, 0, 0, 0.35);
}

.gh-front-content .wp-block-cover .wp-block-button {
	margin-top: 26px;
}

.gh-front-content .wp-block-cover .wp-block-button__link {
	padding: 16px 56px !important;
	font-size: 17px !important;
}

.gh-front-content .wp-block-button.wp-block-button__width-50 {
	width: auto;
	min-width: 230px;
}

/* Home section: image + text (日本2H2D) — contained card, not full-bleed */
.gh-front-content > .wp-block-group.alignfull {
	width: min(var(--container), calc(100% - 48px)) !important;
	max-width: var(--container) !important;
	margin: 58px auto 0 !important;
	padding: 48px 40px !important;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(15, 28, 46, 0.06);
}

.gh-front-content > .wp-block-group.alignfull > .wp-block-spacer {
	display: none;
}

.gh-front-content > .wp-block-group.alignfull > .wp-block-columns {
	max-width: none;
	margin: 0;
	padding: 0;
	gap: 48px;
}

.gh-front-content > .wp-block-group.alignfull .wp-block-image {
	margin: 0;
}

.gh-front-content > .wp-block-group.alignfull .wp-block-image img {
	border-radius: 22px;
	box-shadow: 0 30px 70px rgba(15, 28, 46, 0.14);
}

.gh-front-content > .wp-block-group.alignfull .wp-block-heading {
	margin-top: 0;
	margin-bottom: 14px;
	font-size: clamp(24px, 2.8vw, 32px);
}

.gh-front-content > .wp-block-group.alignfull .wp-block-paragraph {
	color: var(--muted);
	line-height: 2;
}

/* Home latest posts */
.gh-front-content .wp-block-latest-posts.is-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	max-width: var(--container);
	margin: 30px auto 0;
	padding: 0 24px;
	list-style: none;
}

.gh-front-content .wp-block-latest-posts.is-grid li {
	margin: 0;
	padding: 24px 24px 26px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 6px 22px rgba(15, 28, 46, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gh-front-content .wp-block-latest-posts.is-grid li:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(15, 28, 46, 0.11);
}

.gh-front-content .wp-block-latest-posts__post-title {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--ink);
}

.gh-front-content .wp-block-latest-posts__post-title:hover {
	color: var(--gold-deep);
}

.gh-front-content .wp-block-latest-posts__post-date {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--gold-deep);
}

.gh-front-content .wp-block-latest-posts__post-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.85;
	color: var(--muted);
}

/* ==========================================================================
   7. Product grids (blocks + classic loop)
   ========================================================================== */
.gh-front-content .wc-block-grid {
	max-width: var(--container);
	margin: 34px auto 0 !important;
	padding: 0 24px;
}

.gh-front-content .wc-block-grid__products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.wc-block-grid__product {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 0 0 18px !important;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(15, 28, 46, 0.05);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.wc-block-grid__product:hover {
	transform: translateY(-5px);
	border-color: #e2d5bb;
	box-shadow: 0 22px 48px rgba(15, 28, 46, 0.13);
}

/*
 * WooCommerce's block grid caps every card at max-width:25% (and drops the
 * font size to .75em). We replace that layout with a CSS grid, so the cap
 * has to be cleared or the cards shrink into narrow columns.
 */
.gh-front-content .wc-block-grid .wc-block-grid__product {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	font-size: 1rem !important;
}

.gh-front-content .wc-block-grid__product .wc-block-grid__product-link {
	display: block !important;
}

.gh-front-content .wc-block-grid__product .wc-block-grid__product-image {
	display: block !important;
	width: 100%;
}

.gh-front-content .wc-block-grid__product .gh-order-btn {
	margin-top: auto;
}

.wc-block-grid__product .wc-block-grid__product-link {
	display: block;
}

.wc-block-grid__product-image {
	margin: 0 !important;
	background: #f4efe6;
	overflow: hidden;
}

.wc-block-grid__product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img {
	transform: scale(1.04);
}

.wc-block-grid__product-title {
	min-height: 48px;
	margin: 14px 0 6px !important;
	padding: 0 16px !important;
	font-size: 15.5px !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	color: var(--ink) !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wc-block-grid__product-price {
	margin: 0 !important;
	padding: 0 16px !important;
	font-size: 18px !important;
	font-weight: 800 !important;
	color: var(--gold-deep) !important;
}

.wc-block-grid__product-price del {
	margin-right: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #a0a7b1;
}

.wc-block-grid__product-price ins {
	text-decoration: none;
}

.wc-block-grid__product-rating,
.wc-block-grid__product-add-to-cart {
	display: none !important;
}

/* 立即下單 button */
.gh-order-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin: 15px 16px 0;
	padding: 12px 14px;
	background: var(--ink);
	color: #fff;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.gh-order-btn small {
	font-size: 12px;
	font-weight: 500;
	opacity: 0.78;
}

.gh-order-btn:hover {
	background: var(--gold);
	color: var(--ink);
	box-shadow: 0 12px 26px rgba(201, 161, 90, 0.35);
	transform: translateY(-2px);
}

/* Sale badge */
.gh-sale-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 10px;
	background: var(--red);
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

/* ==========================================================================
   8. Shop archive
   ========================================================================== */
.gh-archive-head {
	padding: 26px 0 6px;
	text-align: center;
}

.gh-archive-head h1 {
	margin: 14px 0 10px;
	font-size: clamp(30px, 4vw, 42px);
	letter-spacing: 0.04em;
}

.gh-archive-head h1::after {
	content: "";
	display: block;
	width: 46px;
	height: 3px;
	margin: 16px auto 0;
	background: var(--gold);
	border-radius: 2px;
}

.gh-archive-head p {
	max-width: 620px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 14px;
}

.gh-breadcrumb,
.woocommerce-breadcrumb {
	font-size: 12.5px;
	color: var(--muted);
	letter-spacing: 0.03em;
}

.gh-breadcrumb a,
.woocommerce-breadcrumb a {
	color: var(--muted);
}

.gh-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover {
	color: var(--gold-deep);
}

.gh-crumb-sep {
	margin: 0 8px;
	color: #b9b1a2;
}

.gh-loop-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 26px 0 22px;
}

.woocommerce-result-count {
	float: none !important;
	margin: 0 !important;
	color: var(--muted);
	font-size: 13.5px;
}

.woocommerce-ordering {
	float: none !important;
	margin: 0 !important;
}

.woocommerce-ordering select {
	min-width: 180px;
	padding: 10px 38px 10px 14px;
	background-color: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 14px;
	color: var(--ink);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236d7480' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}

.woocommerce ul.products li.product.gh-card {
	position: relative;
	float: none !important;
	display: flex;
	flex-direction: column;
	width: auto !important;
	margin: 0 !important;
	padding: 0 0 18px !important;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	text-align: left;
	box-shadow: 0 6px 22px rgba(15, 28, 46, 0.05);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.woocommerce ul.products li.product.gh-card:hover {
	transform: translateY(-5px);
	border-color: #e2d5bb;
	box-shadow: 0 22px 48px rgba(15, 28, 46, 0.13);
}

.gh-card-media {
	position: relative;
	background: #f4efe6;
	overflow: hidden;
}

.gh-card-media a {
	display: block;
}

.gh-card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.gh-card:hover .gh-card-media img {
	transform: scale(1.04);
}

.gh-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 0 16px;
}

.gh-card-title {
	min-height: 48px;
	margin: 14px 0 6px !important;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gh-card-title a {
	color: var(--ink);
	text-decoration: none;
}

.gh-card-title a:hover {
	color: var(--gold-deep);
}

.gh-card-price {
	margin: 0 0 2px;
	font-size: 18px;
	font-weight: 800;
	color: var(--gold-deep);
}

.gh-card-price del {
	margin-right: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #a0a7b1;
}

.gh-card-price ins {
	text-decoration: none;
}

.gh-card .gh-order-btn {
	margin-top: auto;
}

/* Woo pagination */
.woocommerce nav.woocommerce-pagination {
	margin: 44px 0 8px;
	text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li {
	margin: 0 !important;
	border: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
	border-color: var(--gold);
	color: var(--gold-deep);
}

/* ==========================================================================
   9. Single product
   ========================================================================== */
.gh-product-crumb {
	padding: 20px 0 2px;
}

.woocommerce div.product {
	position: relative;
	display: grid !important;
	grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
	gap: 52px;
	align-items: start;
	margin: 20px 0 0;
}

.woocommerce div.product div.images,
.woocommerce div.product div.woocommerce-product-gallery,
.woocommerce div.product div.summary {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.woocommerce div.product .woocommerce-product-gallery {
	position: relative;
	top: auto;
	align-self: start;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
	grid-column: 1 / -1;
	float: none !important;
	width: auto !important;
	clear: both;
}

.woocommerce-product-gallery__wrapper {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 22px;
}

.woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	border-radius: 0;
}

.woocommerce-product-gallery__trigger {
	top: 14px !important;
	right: 14px !important;
	z-index: 6;
	background: rgba(255, 255, 255, 0.92) !important;
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(15, 28, 46, 0.15);
}

.woocommerce div.product .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin: 12px 0 0 !important;
	padding: 0;
	list-style: none;
}

.woocommerce div.product .flex-control-thumbs li {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.woocommerce div.product .flex-control-thumbs img {
	border: 1px solid var(--line);
	border-radius: 10px;
	opacity: 0.72;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.woocommerce div.product .flex-control-thumbs img:hover,
.woocommerce div.product .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--gold);
}

/* Sale badge on product page */
.woocommerce span.onsale {
	position: absolute !important;
	top: 18px !important;
	left: 18px !important;
	z-index: 5;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 7px 14px !important;
	background: var(--red) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}

/* Summary */
.woocommerce div.product .summary {
	display: flex;
	flex-direction: column;
	padding-top: 6px;
}

.woocommerce div.product .product_title {
	margin: 0 0 12px;
	font-size: clamp(25px, 2.7vw, 34px);
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.woocommerce div.product .summary .price {
	margin: 0 0 4px;
	color: var(--gold-deep) !important;
	font-size: 28px !important;
	font-weight: 800 !important;
}

.woocommerce div.product .summary .price del {
	margin-right: 8px;
	color: #9aa1ab;
	font-size: 18px;
	font-weight: 500;
}

.woocommerce div.product .summary .price ins {
	text-decoration: none;
}

.woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 12px;
	font-size: 13px;
	color: var(--muted);
}

.woocommerce-product-details__short-description {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: #4a5260;
	font-size: 15px;
	line-height: 1.95;
}

.woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

/* Quick-order form card (the plugin button lives inside form.cart) */
.single-product form.cart {
	margin: 26px 0 0 !important;
	padding: 22px 20px 18px;
	background: linear-gradient(180deg, #fffdf8 0%, #fdf8ee 100%);
	border: 1px solid #eadfc9;
	border-radius: 20px;
	box-shadow: 0 18px 44px rgba(169, 130, 63, 0.08);
}

.single-product form.cart table.variations,
.single-product form.cart .woocommerce-variation.single_variation,
.single-product form.cart .reset_variations,
.single-product form.cart .quantity,
.single-product form.cart .single_add_to_cart_button {
	display: none !important;
}

.single-product form.cart .woocommerce-variation-description:empty,
.single-product form.cart .woocommerce-variation-availability:empty {
	display: none;
}

.wqo-btn-container::before {
	content: "✓ 貨到付款　✓ 7-11／全家取貨　✓ 宅配到府";
	display: block;
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-align: center;
}

.single-product #wqo-open-btn {
	display: block;
	width: 100%;
	margin: 0 !important;
	padding: 17px 20px !important;
	background: linear-gradient(135deg, #c9283e 0%, #961a2c 100%) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 14px !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	letter-spacing: 0.04em;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(150, 24, 44, 0.26) !important;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.single-product #wqo-open-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 38px rgba(150, 24, 44, 0.34) !important;
}

.product_meta {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

.product_meta a {
	color: var(--muted);
}

.product_meta a:hover {
	color: var(--gold-deep);
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
	margin-top: 56px;
	padding-top: 8px;
	border-top: 1px solid var(--line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 26px !important;
	padding: 0 !important;
	border: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after {
	display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 999px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 10px 22px !important;
	color: var(--muted) !important;
	font-size: 15px;
	font-weight: 700 !important;
	text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--ink) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: #fff !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
	margin: 0;
	padding: 0;
	color: #4a5260;
	font-size: 15px;
	line-height: 2;
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
	margin-bottom: 14px;
	font-size: 22px;
}

.woocommerce div.product .woocommerce-tabs .panel > h2:first-child {
	display: none;
}

/* Related products */
.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 {
	margin: 0 0 22px;
	font-size: 24px;
	letter-spacing: 0.03em;
}

.woocommerce div.product .related > h2::after,
.woocommerce div.product .upsells > h2::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin-top: 14px;
	background: var(--gold);
	border-radius: 2px;
}

/* Quick-order form section (plugin output after the product) */
body #wqo-modal {
	max-width: 880px !important;
	margin: 56px auto 0 !important;
	padding: 36px 34px !important;
	background: #fffdf8 !important;
	border: 1px solid #eadfc9;
	border-radius: 24px;
	box-shadow: 0 30px 70px rgba(15, 28, 46, 0.1);
}

body #wqo-modal h2 {
	margin-top: 0;
	color: var(--ink) !important;
	font-size: 22px !important;
	letter-spacing: 0.04em;
}

body #wqo-modal .wqo-product-info {
	border-bottom-color: #eee5d5 !important;
}

/*
 * The quick-order plugin styles its selects except #wqo-gift, which used to
 * inherit the old theme's global select styling. Keep it consistent here.
 */
body #wqo-modal #wqo-gift {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 48px !important;
	padding: 10px 15px !important;
	background-color: #fafafa !important;
	color: #333 !important;
	border: 1.5px solid #ddd !important;
	border-radius: 10px !important;
	font-size: 16px !important;
	line-height: 1.6 !important;
	box-sizing: border-box !important;
}

body #wqo-modal #wqo-gift:focus {
	background-color: #fff !important;
	border-color: #ff4757 !important;
	box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1) !important;
	outline: none !important;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 20px 0;
	padding: 14px 18px !important;
	background: #fff !important;
	border: 1px solid var(--line) !important;
	border-top: 3px solid var(--gold) !important;
	border-radius: 12px !important;
	color: var(--text) !important;
	font-size: 14px;
	list-style: none;
}

.woocommerce-error {
	border-top-color: var(--red) !important;
}

/* ==========================================================================
   10. Content typography (pages & posts)
   ========================================================================== */
.entry-content {
	font-size: 16px;
	line-height: 2;
	color: #3d4550;
}

.entry-content h2 {
	margin: 2em 0 0.7em;
	padding-left: 14px;
	border-left: 4px solid var(--gold);
	font-size: clamp(21px, 2.5vw, 27px);
	letter-spacing: 0.02em;
}

.entry-content h3 {
	margin: 1.8em 0 0.6em;
	font-size: 20px;
}

.entry-content h4 {
	margin: 1.6em 0 0.5em;
	font-size: 17px;
}

.entry-content p {
	margin: 0 0 1.25em;
}

.entry-content a {
	color: var(--gold-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.entry-content a:hover {
	color: var(--ink);
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.4em;
	padding-left: 1.5em;
}

.entry-content li {
	margin-bottom: 0.45em;
}

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 20px 24px;
	background: #fff;
	border-left: 4px solid var(--gold);
	border-radius: 0 12px 12px 0;
	color: var(--ink-2);
}

.entry-content img {
	border-radius: 14px;
}

.entry-content table {
	width: 100%;
	margin: 1.6em 0;
	border-collapse: collapse;
	font-size: 14.5px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content th {
	background: var(--gold-pale);
	color: var(--ink);
	font-weight: 700;
}

.entry-content .wp-block-file {
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
}

.entry-content .wp-block-file__button {
	padding: 8px 18px;
	background: var(--ink) !important;
	color: #fff !important;
	border-radius: 999px !important;
	font-size: 13px !important;
	text-decoration: none !important;
}

.entry-content hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.gh-page {
	padding-bottom: 70px;
}

.gh-page-head {
	padding: 52px 0 26px;
	margin-bottom: 34px;
	text-align: center;
	border-bottom: 1px solid var(--line);
}

.gh-page-head h1 {
	font-size: clamp(28px, 3.6vw, 40px);
	letter-spacing: 0.04em;
}

.gh-page-head h1::after {
	content: "";
	display: block;
	width: 44px;
	height: 3px;
	margin: 16px auto 0;
	background: var(--gold);
	border-radius: 2px;
}

.gh-page-head p {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.gh-archive-desc {
	margin-top: 12px;
	color: var(--muted);
	font-size: 14px;
}

.gh-page-links {
	margin: 24px 0;
	font-weight: 600;
}

/* ==========================================================================
   11. Blog
   ========================================================================== */
.gh-blog {
	padding-bottom: 70px;
}

.gh-post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 36px 0 0;
}

.gh-post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 6px 22px rgba(15, 28, 46, 0.05);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.gh-post-card:hover {
	transform: translateY(-5px);
	border-color: #e2d5bb;
	box-shadow: 0 22px 48px rgba(15, 28, 46, 0.12);
}

.gh-post-card-media {
	display: block;
	background: #f4efe6;
	overflow: hidden;
}

.gh-post-card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.gh-post-card:hover .gh-post-card-media img {
	transform: scale(1.04);
}

.gh-post-card-media--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	background:
		radial-gradient(circle at 78% 18%, rgba(201, 161, 90, 0.28), transparent 42%),
		linear-gradient(135deg, #0f1c2e 0%, #243a57 100%);
}

.gh-post-card-media--fallback span {
	color: rgba(201, 161, 90, 0.92);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.42em;
	text-indent: 0.42em;
}

.gh-post-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 24px;
}

.gh-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	color: var(--gold-deep);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.gh-post-meta > * + *::before {
	content: "·";
	margin-right: 10px;
	color: #b9b1a2;
}

.gh-post-card h2 {
	margin: 0 0 10px;
	font-size: 17.5px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gh-post-card h2 a {
	color: var(--ink);
	text-decoration: none;
}

.gh-post-card h2 a:hover {
	color: var(--gold-deep);
}

.gh-post-card-body p {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.85;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gh-post-more {
	margin-top: auto;
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.gh-post-more span {
	margin-left: 6px;
	color: var(--gold-deep);
}

.gh-post-more:hover {
	color: var(--gold-deep);
}

.gh-pagination {
	margin: 48px 0 0;
}

.gh-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.gh-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.gh-pagination .page-numbers.current {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.gh-pagination .page-numbers:hover {
	border-color: var(--gold);
	color: var(--gold-deep);
}

/* Single article */
.gh-single {
	padding-bottom: 70px;
}

.gh-article-head {
	padding: 48px 0 26px;
	text-align: center;
}

.gh-article-head h1 {
	margin-top: 12px;
	font-size: clamp(27px, 3.4vw, 38px);
	line-height: 1.45;
	letter-spacing: 0.02em;
}

.gh-article-head .gh-post-meta {
	justify-content: center;
}

.gh-article-head .gh-post-meta a {
	color: var(--gold-deep);
	text-decoration: none;
}

.gh-article-thumb {
	margin: 0 0 34px;
}

.gh-article-thumb img {
	display: block;
	width: 100%;
	border-radius: 20px;
}

.gh-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 36px 0 0;
}

.gh-tags a {
	padding: 6px 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 12.5px;
	text-decoration: none;
}

.gh-tags a:hover {
	border-color: var(--gold);
	color: var(--gold-deep);
}

.gh-inline-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin: 44px 0 0;
	padding: 26px 28px;
	background: linear-gradient(135deg, #fffdf8 0%, #f8efdd 100%);
	border: 1px solid #eadfc9;
	border-radius: 20px;
}

.gh-inline-cta strong {
	display: block;
	font-size: 18px;
	color: var(--ink);
}

.gh-inline-cta span {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 13px;
}

.gh-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 36px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	font-weight: 600;
}

.gh-post-nav a {
	color: var(--muted);
	text-decoration: none;
}

.gh-post-nav a:hover {
	color: var(--gold-deep);
}

.gh-post-nav-next {
	margin-left: auto;
	text-align: right;
}

/* Comments */
.gh-comments {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.gh-comments-title {
	margin-bottom: 20px;
	font-size: 22px;
}

.gh-comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gh-comment {
	margin-bottom: 20px;
}

.gh-comment-body {
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.gh-comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 13px;
}

.gh-comment-meta img {
	border-radius: 50%;
}

.gh-comment-meta time {
	color: var(--muted);
	font-size: 12px;
}

.gh-comments input[type="text"],
.gh-comments input[type="email"],
.gh-comments input[type="url"],
.gh-comments textarea {
	width: 100%;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 15px;
}

.gh-comments .submit {
	padding: 12px 28px;
	background: var(--ink);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	cursor: pointer;
}

/* Empty / 404 */
.gh-empty {
	padding: 56px 0;
	text-align: center;
	color: var(--muted);
}

.gh-404 {
	padding: 80px 0 100px;
	text-align: center;
}

.gh-404-code {
	font-size: clamp(72px, 14vw, 140px);
	font-weight: 800;
	line-height: 1;
	color: var(--gold-pale);
	letter-spacing: -0.02em;
}

.gh-404-box h1 {
	margin: 10px 0 12px;
	font-size: clamp(26px, 3.4vw, 36px);
}

.gh-404-box p {
	max-width: 520px;
	margin: 0 auto 28px;
	color: var(--muted);
}

.gh-404-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.gh-footer {
	margin-top: 80px;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.72);
}

.gh-trust {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gh-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	padding-top: 28px;
	padding-bottom: 28px;
}

.gh-trust-item {
	display: flex;
	align-items: center;
	gap: 13px;
}

.gh-trust-item svg {
	flex: 0 0 auto;
	color: var(--gold);
}

.gh-trust-item strong {
	display: block;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.gh-trust-item span {
	display: block;
	margin-top: 2px;
	color: rgba(255, 255, 255, 0.52);
	font-size: 12px;
}

.gh-footer-main {
	display: grid;
	grid-template-columns: 1.5fr 1fr 0.85fr 0.85fr;
	gap: 44px;
	padding-top: 56px;
	padding-bottom: 48px;
}

.gh-fb-title {
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.2em;
}

.gh-fb-sub {
	margin-top: 6px;
	color: var(--gold);
	font-size: 10px;
	letter-spacing: 0.34em;
}

.gh-footer-brand p {
	max-width: 330px;
	margin: 18px 0 20px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13.5px;
	line-height: 1.9;
}

.gh-age-badge {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
	letter-spacing: 0.08em;
}

.gh-footer-col h3 {
	margin: 4px 0 18px;
	color: var(--gold);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.gh-footer-col ul {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gh-footer-col a {
	color: rgba(255, 255, 255, 0.68);
	font-size: 13.5px;
	text-decoration: none;
}

.gh-footer-col a:hover {
	color: var(--gold);
}

.gh-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gh-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 18px;
	padding-bottom: 18px;
	color: rgba(255, 255, 255, 0.42);
	font-size: 11.5px;
	letter-spacing: 0.02em;
}

/* ==========================================================================
   12b. Back to top
   ========================================================================== */
.gh-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 950;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	background: var(--ink);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	box-shadow: 0 14px 34px rgba(15, 28, 46, 0.28);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.gh-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.gh-to-top:hover {
	background: var(--gold);
	color: var(--ink);
	transform: translateY(-2px);
}

.gh-to-top:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

/* The quick-order plugin has a fixed bottom bar on product pages. */
body.single-product .gh-to-top {
	bottom: 78px;
}

@media screen and (max-width: 768px) {
	.gh-to-top {
		right: 16px;
		bottom: 16px;
		width: 48px;
		height: 48px;
	}

	body.single-product .gh-to-top {
		bottom: 74px;
	}
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media screen and (max-width: 1080px) {
	.gh-front-content .wc-block-grid__products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gh-footer-main {
		grid-template-columns: 1.4fr 1fr 1fr;
	}

	.gh-footer-brand {
		grid-column: 1 / -1;
	}

	.woocommerce div.product {
		gap: 38px;
	}
}

@media screen and (max-width: 900px) {
	.gh-nav,
	.gh-header-cta {
		display: none;
	}

	.gh-burger {
		display: flex;
	}

	.gh-header-inner {
		height: 68px;
	}

	.gh-logo img {
		max-height: 40px;
	}

	.gh-front-content .wp-block-latest-posts.is-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.woocommerce div.product {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.woocommerce div.product .woocommerce-product-gallery {
		position: static;
	}

	.woocommerce div.product .summary {
		padding-top: 0;
	}

	.gh-post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 768px) {
	.gh-container,
	.gh-container.gh-narrow {
		width: calc(100% - 36px);
	}

	.gh-topbar {
		font-size: 11.5px;
	}

	.gh-topbar span + span::before {
		margin: 0 10px;
	}

	.gh-front-content .wc-block-grid,
	.gh-front-content .wp-block-latest-posts.is-grid {
		padding-left: 18px;
		padding-right: 18px;
	}

	.gh-front-content .wc-block-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.gh-front-content > .wp-block-group.alignfull {
		width: calc(100% - 36px) !important;
		padding: 28px 20px !important;
	}

	.gh-front-content > .wp-block-group.alignfull > .wp-block-columns {
		gap: 28px;
	}

	.gh-front-content .wp-block-columns {
		gap: 26px;
	}

	.gh-trust-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.gh-footer-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
		padding-top: 44px;
	}

	.gh-footer-brand {
		grid-column: 1 / -1;
	}

	.gh-archive-head {
		padding-top: 18px;
	}

	.gh-loop-tools {
		flex-wrap: wrap;
	}

	body #wqo-modal {
		margin: 40px auto 0 !important;
		padding: 26px 20px !important;
	}

	.gh-inline-cta {
		padding: 22px;
	}
}

@media screen and (max-width: 560px) {
	body {
		font-size: 15.5px;
	}

	.gh-topbar span:nth-child(4) {
		display: none;
	}

	.gh-front-content .wp-block-cover p[style] {
		font-size: 34px !important;
		line-height: 1.08 !important;
	}

	.gh-front-content > .wp-block-heading {
		margin-top: 46px;
	}

	.gh-front-content .wc-block-grid__product-title,
	.gh-front-content .wc-block-grid__product-price {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	.wc-block-grid__product .gh-order-btn {
		margin-left: 12px;
		margin-right: 12px;
		padding: 10px 8px;
		font-size: 13px;
	}

	.gh-card-body {
		padding: 0 12px;
	}

	.gh-card-title {
		font-size: 14px;
		min-height: 42px;
	}

	.gh-card-price {
		font-size: 16px;
	}

	.gh-card .gh-order-btn {
		margin-left: 0;
		margin-right: 0;
		padding: 10px 8px;
		font-size: 13px;
	}

	.gh-order-btn small {
		font-size: 11px;
	}

	.gh-post-grid {
		grid-template-columns: 1fr;
	}

	.gh-front-content .wp-block-latest-posts.is-grid {
		grid-template-columns: 1fr;
	}

	.woocommerce div.product .product_title {
		font-size: 24px;
	}

	.woocommerce div.product .summary .price {
		font-size: 24px !important;
	}

	.gh-article-head {
		padding-top: 34px;
	}

	.gh-footer-main {
		grid-template-columns: 1fr;
	}

	.gh-footer-bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media screen and (max-width: 420px) {
	.gh-order-btn {
		flex-wrap: wrap;
		line-height: 1.3;
		row-gap: 2px;
		font-size: 12px;
	}

	.gh-order-btn small {
		font-size: 10px;
	}

	.gh-card-title,
	.wc-block-grid__product-title {
		font-size: 13px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
