/* Sticky header, newsletter band, footer. */

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 56px;
	background: rgba(23, 21, 15, .9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
body.admin-bar .site-header { top: 32px; }

.site-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	font-weight: 700;
	font-size: 23px;
	letter-spacing: .03em;
	color: var(--ink);
}

/* TD monogram — brand mint, independent from the theme accent */
.site-logo { display: block; height: 36px; color: #5FC4A6; }
.site-logo svg { display: block; height: 100%; width: auto; }
.footer-logo .site-logo { height: 30px; }

.site-nav { display: flex; gap: 8px; font-size: 16px; font-weight: 500; }
.nav-link { color: var(--muted); padding: 9px 16px; border-radius: 999px; }
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-link.is-active { color: #17150f; background: var(--acc); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; }
.cart-link { color: var(--muted); white-space: nowrap; }
.cart-link:hover { color: var(--ink); }
.signin-btn {
	padding: 9px 18px;
	border: 1px solid var(--acc);
	color: var(--acc);
	border-radius: 6px;
	font-weight: 600;
	white-space: nowrap;
}
/* Desktop: text labels only — icons and count badge stay hidden */
.header-icon { display: none; width: 23px; height: 23px; }
.cart-badge { display: none; }

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line-2);
	color: var(--ink);
	font-size: 18px;
	border-radius: 8px;
	padding: 6px 12px;
	cursor: pointer;
}

/* Newsletter band */
.newsletter {
	padding: 64px 56px;
	text-align: center;
	border-top: 1px solid var(--line);
}
.newsletter h2 { font-weight: 700; font-size: 30px; margin: 0 0 12px; }
.newsletter p { color: var(--muted); font-size: 16px; margin: 0 0 26px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-input {
	flex: 1;
	padding: 15px 18px;
	background: var(--panel);
	border: 1px solid var(--line-2);
	border-radius: 8px;
	color: var(--ink);
	font-size: 15px;
	font-family: inherit;
	min-width: 0;
}
.newsletter-input::placeholder { color: var(--dim-2); }
.newsletter-success { color: var(--acc); font-weight: 600; }

/* Footer */
.site-footer { padding: 50px 56px 34px; border-top: 1px solid var(--line); }
.footer-cols {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--line);
	flex-wrap: wrap;
	gap: 24px;
}
.footer-brand { max-width: 300px; }
.footer-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 22px;
	margin-bottom: 10px;
	letter-spacing: .03em;
}
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.footer-groups { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-group { font-size: 14px; line-height: 2.2; color: var(--muted); }
.footer-group a { display: block; }
.footer-group a:hover { color: var(--acc); }
.footer-group-title { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	padding-top: 22px;
	font-size: 13px;
	color: var(--dim-2);
	flex-wrap: wrap;
	gap: 10px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--ink); }

@media (max-width: 900px) {
	/* Single row: [☰] [logo] ............ [Cart] [Sign In] */
	.site-header { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
	.menu-toggle { display: block; order: 1; }
	.site-brand { order: 2; margin-right: auto; gap: 8px; font-size: 20px; }
	.site-logo { height: 30px; }
	.header-actions { order: 3; gap: 10px; }
	.site-nav {
		display: none;
		order: 4;
		width: 100%;
		flex-direction: column;
		gap: 6px;
		padding-top: 12px;
		border-top: 1px solid var(--line);
		margin-top: 8px;
	}
	.site-header.nav-open .site-nav { display: flex; }
	.newsletter, .site-footer { padding-inline: 24px; }

	/* Cart + Sign In collapse to icons */
	.cart-label, .signin-label { display: none; }
	.header-icon { display: block; }
	.cart-link {
		position: relative;
		padding: 8px;
		color: var(--ink);
	}
	.cart-badge {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 1px;
		right: -1px;
		min-width: 16px;
		height: 16px;
		padding: 0 4px;
		border-radius: 999px;
		background: var(--acc);
		color: #17150f;
		font-size: 10px;
		font-weight: 700;
		line-height: 1;
	}
	.signin-btn { padding: 8px; border: none; }
}

@media (max-width: 430px) {
	/* Very small phones: brand text stays visible, just slightly smaller */
	.site-brand { font-size: 17px; gap: 7px; letter-spacing: .02em; }
	.site-logo { height: 26px; }
	.header-actions { gap: 6px; }
	.cart-link, .signin-btn { padding: 7px; }
}
