/**
 * Structural layout: announcement bar, header, category nav, mobile nav,
 * footer, shop page grid.
 */

/* --- Announcement bar --- */
.announcement-bar {
	background: var(--color-text);
	color: var(--color-bg);
	text-align: center;
	padding: 7px var(--space-lg);
}

.announcement-bar-text {
	margin: 0;
	font-size: var(--text-xs);
	font-weight: var(--weight-semibold);
	letter-spacing: 0.03em;
}

/* --- Header --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.site-header-inner {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	min-height: var(--header-height);
}

.site-branding {
	margin-right: auto;
}

/* Uploaded logo (Customizer → Site Identity): WordPress outputs it at its
   natural upload size, so cap it to the header. Adjust max-height here if
   the brand mark needs more/less presence. */
.site-branding img.custom-logo {
	display: block;
	max-height: 48px;
	width: auto;
}

.site-title {
	font-family: var(--font-display);
	font-size: 1.6rem;
	font-weight: var(--weight-medium);
	letter-spacing: 0.01em;
	color: var(--color-text);
	transition: color var(--duration-fast) var(--ease-soft);
}

.site-title:hover {
	color: var(--color-accent-primary-dark);
}

.site-header-actions {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.header-icon-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: none;
	background: transparent;
	border-radius: var(--radius-pill);
	color: var(--color-text);
	transition: background var(--duration-fast) var(--ease-soft), color var(--duration-fast) var(--ease-soft);
}

.header-icon-button:hover {
	background: var(--color-bg-alt);
	color: var(--color-accent-primary-dark);
}

.cart-count-badge {
	position: absolute;
	top: 3px;
	right: 3px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: var(--radius-pill);
	background: var(--color-accent-primary);
	color: #fff;
	font-size: 0.65rem;
	font-weight: var(--weight-bold);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--color-bg);
}

.mobile-nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 42px;
	height: 42px;
	border: none;
	background: transparent;
	border-radius: var(--radius-pill);
}

.mobile-nav-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--color-text);
	border-radius: var(--radius-pill);
}

/* --- Category nav (desktop strip under the logo row) --- */
.category-nav {
	display: none;
	border-top: 1px solid var(--color-border);
}

.category-nav-list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--space-xs);
	padding-block: var(--space-sm);
}

.category-nav-list a {
	display: inline-block;
	padding: 7px 16px;
	border-radius: var(--radius-pill);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	color: var(--color-text);
	transition: background var(--duration-fast) var(--ease-soft), color var(--duration-fast) var(--ease-soft);
}

.category-nav-list a:hover {
	background: var(--color-bg-alt);
	color: var(--color-accent-primary-dark);
}

.category-nav-list li.is-active a,
.category-nav-list li.current-menu-item a {
	background: var(--color-text);
	color: var(--color-bg);
}

/* --- Header search --- */
.header-search-form {
	border-top: 1px solid var(--color-border);
	background: var(--color-surface);
}

.header-search-form[hidden] {
	display: none;
}

.header-search-form-inner {
	max-width: var(--container-width);
	margin-inline: auto;
	padding: var(--space-lg);
	display: flex;
	gap: var(--space-sm);
}

.header-search-form-inner input[type="search"] {
	flex: 1;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	padding: var(--space-sm) var(--space-lg);
	background: var(--color-bg);
}

/* --- Mobile nav drawer --- */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: var(--color-surface);
	padding: var(--space-lg) var(--space-xl) var(--space-xl);
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform var(--duration-medium) var(--ease-soft);
}

.mobile-nav[hidden] {
	display: block;
	visibility: hidden;
}

.mobile-nav.is-open {
	transform: translateX(0);
	visibility: visible;
}

.mobile-nav-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--space-xl);
}

.mobile-nav-title {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: var(--weight-medium);
}

.mobile-nav-label {
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-muted);
	margin-bottom: var(--space-sm);
}

.mobile-nav-list li {
	border-bottom: 1px solid var(--color-border);
}

.mobile-nav-list a {
	display: block;
	padding: var(--space-lg) var(--space-xs);
	font-family: var(--font-display);
	font-size: var(--text-md);
	font-weight: var(--weight-medium);
	transition: color var(--duration-fast) var(--ease-soft);
}

.mobile-nav-list a:hover {
	color: var(--color-accent-primary-dark);
}

.mobile-nav-list li.is-active a {
	color: var(--color-accent-primary-dark);
}

/* --- Footer --- */
.site-footer {
	margin-top: var(--space-4xl);
	background: var(--color-bg-alt);
}

.footer-columns {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--space-2xl);
	padding-block: var(--space-3xl);
}

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

.footer-column-brand img.custom-logo {
	display: block;
	max-height: 40px;
	width: auto;
	margin-bottom: var(--space-sm);
}

.footer-site-title {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: var(--weight-medium);
	margin-bottom: var(--space-sm);
}

.footer-tagline {
	color: var(--color-text-muted);
	max-width: 32ch;
}

.footer-socials-label {
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--color-text-muted);
	margin-bottom: var(--space-sm);
}

.footer-socials {
	display: flex;
	gap: var(--space-sm);
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	background: var(--color-surface);
	color: var(--color-text);
	transition: border-color var(--duration-fast) var(--ease-soft), color var(--duration-fast) var(--ease-soft), transform var(--duration-fast) var(--ease-soft);
}

.footer-social-link .icon {
	width: 1.15em;
	height: 1.15em;
}

.footer-social-link:hover {
	border-color: var(--color-accent-primary);
	color: var(--color-accent-primary-dark);
	transform: translateY(-2px);
}

.footer-widget-title {
	font-size: var(--text-sm);
	font-family: var(--font-body);
	font-weight: var(--weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--color-text-muted);
	margin-bottom: var(--space-md);
}

.footer-menu li {
	margin-bottom: var(--space-sm);
}

.footer-menu a {
	color: var(--color-text);
	font-size: var(--text-sm);
	transition: color var(--duration-fast) var(--ease-soft);
}

.footer-menu a:hover {
	color: var(--color-accent-primary-dark);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-md);
	padding-block: var(--space-lg);
	border-top: 1px solid var(--color-border);
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.footer-legal {
	display: flex;
	gap: var(--space-lg);
}

.footer-legal a {
	color: var(--color-text-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-legal a:hover {
	color: var(--color-text);
}

.footer-payment-icons {
	display: flex;
	gap: var(--space-sm);
}

.payment-icon {
	padding: var(--space-xs) var(--space-sm);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	font-size: var(--text-xs);
}

/* --- Shop page layout: sidebar + results --- */
.shop-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-2xl);
	align-items: start;
}

.shop-header {
	margin-block: var(--space-xl) var(--space-lg);
}

.shop-title {
	font-size: var(--text-2xl);
}
