.gir-dashboard,
.gir-landing {
	--gir-bg: #fffaf2;
	--gir-card: #ffffff;
	--gir-line: rgba(45, 31, 18, 0.16);
	--gir-text: #21170f;
	--gir-muted: #6d5b46;
	--gir-accent: #8f3f2f;
	box-sizing: border-box;
	width: min(1120px, calc(100% - 32px));
	margin: 48px auto;
	color: var(--gir-text);
	font-family: inherit;
}

.gir-dashboard *,
.gir-dashboard *::before,
.gir-dashboard *::after,
.gir-landing *,
.gir-landing *::before,
.gir-landing *::after {
	box-sizing: border-box;
}

.gir-hero,
.gir-stat-row,
.gir-panel__header,
.gir-form-row,
.gir-product-picker,
.gir-landing-hero,
.gir-landing-hero__actions,
.gir-product-row,
.gir-product-card {
	display: flex;
}

.gir-hero {
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.gir-hero__copy,
.gir-link-box,
.gir-panel,
.gir-stat-card {
	border: 1px solid var(--gir-line);
	border-radius: 18px;
	background: var(--gir-card);
	box-shadow: 0 24px 72px rgba(77, 48, 25, 0.08);
}

.gir-hero__copy {
	flex: 1 1 460px;
	padding: clamp(24px, 4vw, 44px);
}

.gir-eyebrow {
	margin: 0 0 10px;
	color: var(--gir-accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gir-hero h1,
.gir-panel h2 {
	margin: 0;
	font-family: "Noto Serif TC", serif;
	line-height: 1;
	letter-spacing: 0;
}

.gir-hero h1 {
	font-size: clamp(2.7rem, 8vw, 6.2rem);
}

.gir-hero__copy p:last-child,
.gir-panel__header p,
.gir-dashboard--login p {
	max-width: 640px;
	margin: 14px 0 0;
	color: var(--gir-muted);
	font-weight: 700;
	line-height: 1.8;
}

.gir-link-box {
	flex: 0 1 360px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 22px;
}

.gir-link-box span,
.gir-stat-card span {
	color: var(--gir-muted);
	font-size: 0.86rem;
	font-weight: 800;
}

.gir-link-box code {
	display: block;
	overflow-x: auto;
	padding: 10px 12px;
	border-radius: 999px;
	background: #f4eadc;
	color: var(--gir-text);
	white-space: nowrap;
}

.gir-link-box strong {
	font-size: 1.4rem;
}

.gir-stat-row {
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.gir-stat-card {
	flex: 1 1 180px;
	padding: 18px;
}

.gir-stat-card strong {
	display: block;
	margin-top: 8px;
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	line-height: 1.1;
}

.gir-panel {
	margin-top: 20px;
	padding: clamp(18px, 3vw, 28px);
}

.gir-panel__header {
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--gir-line);
}

.gir-panel h2 {
	font-size: clamp(1.7rem, 4vw, 3rem);
}

.gir-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.gir-dashboard table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
}

.gir-dashboard th,
.gir-dashboard td {
	padding: 16px 10px;
	border-bottom: 1px solid var(--gir-line);
	text-align: left;
	vertical-align: top;
}

.gir-dashboard th {
	color: var(--gir-muted);
	font-size: 0.82rem;
	text-transform: uppercase;
}

.gir-dashboard input[type="text"],
.gir-dashboard input[type="url"],
.gir-dashboard input[type="password"],
.gir-dashboard select,
.gir-dashboard textarea {
	width: 100%;
	border: 1px solid var(--gir-line);
	background: #fff;
	color: var(--gir-text);
	font: inherit;
}

.gir-dashboard input[type="text"],
.gir-dashboard input[type="url"],
.gir-dashboard input[type="password"],
.gir-dashboard select {
	min-height: 48px;
	border-radius: 999px;
	padding: 8px 16px;
}

.gir-dashboard textarea {
	border-radius: 16px;
	padding: 14px 16px;
	resize: vertical;
}

.gir-dashboard input[type="submit"],
.gir-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border: 0;
	border-radius: 999px;
	padding: 0 28px;
	background: var(--gir-text);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.gir-button:hover,
.gir-button:focus {
	color: #fff;
	background: #3b2418;
}

.gir-button--ghost {
	border: 1px solid var(--gir-line);
	background: #fff;
	color: var(--gir-text);
}

.gir-button--ghost:hover,
.gir-button--ghost:focus {
	color: #fff;
	background: var(--gir-text);
}

.gir-button--small {
	min-height: 42px;
	padding: 0 20px;
	font-size: 0.9rem;
}

.gir-notice {
	margin: 0 0 18px;
	padding: 14px 18px;
	border: 1px solid rgba(63, 129, 83, 0.28);
	border-radius: 14px;
	background: rgba(223, 244, 226, 0.7);
	color: #315f3c;
	font-weight: 800;
}

.gir-editor-form {
	margin-top: 22px;
}

.gir-form-row,
.gir-product-picker {
	flex-wrap: wrap;
	gap: 14px;
}

.gir-form-row label {
	flex: 1 1 260px;
}

.gir-form-block,
.gir-form-inline {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.gir-form-block {
	flex-direction: column;
}

.gir-form-inline {
	flex-wrap: wrap;
	align-items: center;
}

.gir-form-block > span,
.gir-form-inline > span,
.gir-form-row label > span {
	display: block;
	margin-bottom: 8px;
	color: var(--gir-muted);
	font-weight: 900;
}

.gir-form-block--editor .wp-editor-wrap,
.gir-form-block--editor .wp-editor-container {
	width: 100%;
}

.gir-form-block--editor .wp-editor-wrap {
	border-radius: 16px;
	overflow: hidden;
}

.gir-form-block--editor .mce-toolbar .mce-btn button,
.gir-form-block--editor .quicktags-toolbar input {
	min-height: auto;
	border-radius: 0;
}

.gir-product-picker label {
	flex: 1 1 220px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--gir-line);
	border-radius: 14px;
	background: #fffaf2;
	font-weight: 800;
}

.gir-muted {
	color: var(--gir-muted);
}

.gir-dashboard--login {
	max-width: 720px;
}

.gir-landing {
	width: min(1180px, calc(100% - 32px));
	margin: 48px auto 72px;
}

.gir-landing-hero,
.gir-landing-products,
.gir-landing__notice {
	border: 1px solid var(--gir-line);
	border-radius: 24px;
	background:
		linear-gradient(135deg, rgba(255, 250, 242, 0.98), rgba(255, 255, 255, 0.92)),
		var(--gir-card);
	box-shadow: 0 30px 90px rgba(77, 48, 25, 0.1);
}

.gir-landing-hero {
	flex-wrap: wrap;
	align-items: stretch;
	gap: 22px;
	padding: clamp(20px, 4vw, 42px);
}

.gir-landing-hero__copy {
	flex: 1 1 480px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.gir-landing-hero h1,
.gir-landing-section-head h2,
.gir-landing__notice h1 {
	margin: 0;
	font-family: "Noto Serif TC", serif;
	line-height: 1.05;
	letter-spacing: 0;
}

.gir-landing-hero h1 {
	max-width: 760px;
	font-size: clamp(2.7rem, 7vw, 6.4rem);
}

.gir-landing-hero__intro {
	max-width: 680px;
	margin-top: 18px;
	color: var(--gir-muted);
	font-weight: 800;
	line-height: 1.85;
}

.gir-landing-hero__intro p {
	margin: 0 0 10px;
}

.gir-landing-hero__actions {
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
}

.gir-landing-hero__actions span {
	color: var(--gir-muted);
	font-weight: 800;
}

.gir-landing-hero__media {
	flex: 0 1 380px;
	min-height: 320px;
	border-radius: 22px;
	overflow: hidden;
	background: #f3e8d8;
}

.gir-landing-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gir-landing-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 320px;
	background: linear-gradient(135deg, #f3e8d8, #fffaf2);
	color: rgba(45, 31, 18, 0.18);
	font-size: clamp(2rem, 5vw, 4.5rem);
	font-weight: 900;
	text-align: center;
}

.gir-landing-products {
	margin-top: 24px;
	padding: clamp(18px, 3vw, 30px);
}

.gir-landing-content {
	margin-top: 24px;
	padding: clamp(22px, 4vw, 44px);
	border: 1px solid var(--gir-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 90px rgba(77, 48, 25, 0.08);
	color: var(--gir-text);
	font-weight: 700;
	line-height: 1.85;
}

.gir-landing-content > *:first-child {
	margin-top: 0;
}

.gir-landing-content > *:last-child {
	margin-bottom: 0;
}

.gir-landing-content h2,
.gir-landing-content h3,
.gir-landing-content h4 {
	margin: 1.1em 0 0.45em;
	font-family: "Noto Serif TC", serif;
	line-height: 1.15;
	letter-spacing: 0;
}

.gir-landing-content h2 {
	font-size: clamp(2rem, 4.4vw, 4rem);
}

.gir-landing-content h3 {
	font-size: clamp(1.45rem, 2.6vw, 2.4rem);
}

.gir-landing-content p {
	margin: 0 0 1em;
}

.gir-landing-content img {
	display: block;
	max-width: min(100%, 760px);
	height: auto;
	margin: 18px auto;
	border-radius: 18px;
}

.gir-landing-content figure {
	max-width: min(100%, 760px);
	margin: 22px auto;
}

.gir-landing-content figcaption {
	margin-top: 8px;
	color: var(--gir-muted);
	font-size: 0.92rem;
	text-align: center;
}

.gir-landing-section-head {
	max-width: 780px;
}

.gir-landing-section-head h2 {
	font-size: clamp(2rem, 4.6vw, 4.4rem);
}

.gir-product-row {
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 22px;
}

.gir-product-card {
	flex: 0 1 300px;
	flex-direction: column;
	max-width: 320px;
	overflow: hidden;
	border: 1px solid var(--gir-line);
	border-radius: 18px;
	background: #fff;
}

.gir-product-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4eadc;
}

.gir-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gir-product-card:hover .gir-product-card__image img {
	transform: scale(1.04);
}

.gir-product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px;
}

.gir-product-card__type {
	margin: 0 0 8px;
	color: var(--gir-accent);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gir-product-card h3 {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.35;
}

.gir-product-card h3 a {
	color: inherit;
	text-decoration: none;
}

.gir-product-card__price {
	margin: 10px 0 16px;
	font-weight: 900;
}

.gir-product-card__body .gir-button {
	margin-top: auto;
}

.gir-landing__notice {
	width: min(760px, calc(100% - 32px));
	margin: 48px auto;
	padding: clamp(22px, 4vw, 40px);
}

@media (max-width: 700px) {
	.gir-dashboard {
		width: min(100% - 24px, 520px);
		margin: 28px auto;
	}

	.gir-hero__copy,
	.gir-link-box,
	.gir-panel {
		border-radius: 14px;
	}

	.gir-link-box,
	.gir-stat-card {
		flex-basis: 100%;
	}

	.gir-landing {
		width: min(100% - 24px, 520px);
		margin: 28px auto 48px;
	}

	.gir-landing-hero,
	.gir-landing-products {
		border-radius: 16px;
	}

	.gir-landing-hero h1 {
		font-size: clamp(2.4rem, 13vw, 4rem);
	}

	.gir-landing-hero__media {
		flex-basis: 100%;
		min-height: 240px;
	}

	.gir-product-card {
		flex-basis: 100%;
		max-width: none;
	}
}
