/* =========================================================
   WHAPPENSTAR — LAYOUT
   Header / masthead / nav / footer structure.
   ========================================================= */

.ws-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ws-ink);
	color: var(--ws-paper);
	padding: var(--ws-space-1) var(--ws-space-2);
	z-index: 1000;
}
.ws-skip-link:focus {
	left: var(--ws-space-1);
	top: var(--ws-space-1);
}

/* ---- Topbar ---- */
.ws-topbar {
	background: var(--ws-ink);
	color: var(--ws-paper-dark);
}
.ws-topbar-inner {
	max-width: var(--ws-content-width);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	padding: var(--ws-space-1) var(--ws-space-3);
	font-size: var(--ws-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* ---- Masthead: CENTERED LOGO ----
   This is the core brand requirement — the logo block sits
   centered regardless of what's in the topbar or nav around it. */
.ws-masthead {
	text-align: center;
	padding: var(--ws-space-4) var(--ws-space-3) var(--ws-space-3);
	border-bottom: var(--ws-border-width) solid var(--ws-ink);
}
.ws-masthead-link {
	display: inline-block;
	text-decoration: none;
	color: var(--ws-ink);
}
.ws-masthead-link img {
	margin: 0 auto;
	max-height: 90px;
	width: auto;
}

/* Fallback wordmark (used if no custom logo image is set yet) —
   recreates the riso-misregistration effect from the mockup. */
.ws-logo-fallback {
	position: relative;
	display: inline-block;
	font-family: var(--ws-font-display);
	font-size: var(--ws-text-2xl);
	text-transform: uppercase;
	letter-spacing: -0.01em;
	line-height: 1;
	white-space: nowrap;
}
.ws-logo-text {
	position: relative;
	display: block;
}
.ws-logo-ghost {
	position: absolute;
	left: 3px;
	top: 3px;
	display: block;
	color: var(--ws-red);
	z-index: -1;
	opacity: 0.85;
}

.ws-tagline {
	margin: var(--ws-space-1) 0 0;
	font-family: var(--ws-font-body);
	font-weight: 700;
	font-size: var(--ws-text-xs);
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--ws-ink-soft);
}

/* ---- Nav ---- */
.ws-nav {
	background: var(--ws-paper);
	border-bottom: var(--ws-border-width) solid var(--ws-ink);
}
.ws-nav-inner {
	max-width: var(--ws-content-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: stretch;
	position: relative;
}
.ws-nav-list {
	grid-column: 2;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ws-nav-list li {
	border-right: 1px solid var(--ws-ink);
}
.ws-nav-list li:last-child {
	border-right: none;
}
.ws-nav-list a {
	display: block;
	padding: var(--ws-space-2) var(--ws-space-3);
	text-decoration: none;
	font-family: var(--ws-font-display);
	font-size: var(--ws-text-xs);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ws-ink);
	transition: background-color 0.15s ease, color 0.15s ease;
}
.ws-nav-list a:hover,
.ws-nav-list a:focus-visible {
	background: var(--ws-red);
	color: #fff;
}

.ws-nav-actions {
	grid-column: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--ws-space-2);
	padding: 0 var(--ws-space-3);
}
.ws-icon-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ws-ink);
	text-decoration: none;
}
.ws-wishlist-count,
.ws-cart-count {
	position: absolute;
	top: -6px;
	right: -8px;
	background: var(--ws-red);
	color: #fff;
	font-family: var(--ws-font-body);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
}
.ws-wishlist-count[data-empty="true"],
.ws-cart-count[data-empty="true"] {
	display: none;
}

.ws-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	padding: var(--ws-space-2);
}
.ws-nav-toggle-bar {
	width: 22px;
	height: 2px;
	background: var(--ws-ink);
}

/* ---- Main content width ---- */
.ws-main {
	max-width: var(--ws-content-width);
	margin: 0 auto;
}
/* Pages built/edited in Pagelayer should NOT inherit the
   content-width constraint — Pagelayer manages its own row
   widths and full-bleed sections. */
.ws-main.ws-pagelayer-canvas {
	max-width: none;
	margin: 0;
}
body.ws-is-pagelayer .ws-main {
	max-width: none;
	margin: 0;
}

/* ---- Page/post body content (was previously unstyled, relying
   only on body{} inheritance) ---- */
.ws-content-wrap {
	padding: var(--ws-space-4) var(--ws-space-3);
}
.ws-page-title,
.ws-post-title {
	font-family: var(--ws-font-display);
	text-transform: uppercase;
	font-size: var(--ws-text-xl);
	margin: 0 0 var(--ws-space-3);
}
.ws-post-title a {
	text-decoration: none;
	color: inherit;
}
.ws-page-content,
.ws-post-excerpt {
	font-size: var(--ws-text-base);
	line-height: 1.7;
	max-width: 720px; /* caps line length for readability at the larger size */
}
.ws-page-content p,
.ws-post-excerpt p {
	margin: 0 0 var(--ws-space-3);
}
.ws-post {
	margin-bottom: var(--ws-space-5);
	padding-bottom: var(--ws-space-4);
	border-bottom: 1px solid var(--ws-line);
}

/* ---- Footer ---- */
.ws-footer {
	border-top: var(--ws-border-width) solid var(--ws-ink);
	margin-top: var(--ws-space-6);
}
.ws-footer-newsletter {
	background: var(--ws-ink);
	color: var(--ws-paper);
	text-align: center;
	padding: var(--ws-space-5) var(--ws-space-3);
}
.ws-footer-newsletter-inner {
	max-width: 480px;
	margin: 0 auto;
}
.ws-footer-heading {
	font-family: var(--ws-font-display);
	text-transform: uppercase;
	font-size: var(--ws-text-xl);
	margin: 0 0 var(--ws-space-1);
}
.ws-footer-newsletter p {
	font-size: var(--ws-text-sm);
	color: var(--ws-paper-dark);
	margin: 0 0 var(--ws-space-2);
}

.ws-footer-main {
	max-width: var(--ws-content-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: var(--ws-space-4);
	padding: var(--ws-space-5) var(--ws-space-3);
}
.ws-footer-logo img {
	max-height: 50px;
	width: auto;
}
.ws-footer-credit {
	font-size: var(--ws-text-xs);
	color: var(--ws-ink-soft);
	margin-top: var(--ws-space-2);
}
.ws-widget-title {
	font-family: var(--ws-font-display);
	font-size: var(--ws-text-sm);
	text-transform: uppercase;
	margin: 0 0 var(--ws-space-2);
}
.ws-footer-links li {
	margin-bottom: var(--ws-space-1);
}
.ws-footer-links a,
.ws-footer-social {
	font-size: var(--ws-text-sm);
	text-decoration: none;
	color: var(--ws-ink-soft);
}
.ws-footer-links a:hover,
.ws-footer-social:hover {
	color: var(--ws-red);
}

/* ---- Responsive ---- */
@media (max-width: 782px) {
	.ws-nav-toggle {
		display: flex;
	}
	.ws-nav-inner {
		grid-template-columns: 1fr auto;
	}
	.ws-nav-list {
		grid-column: 1 / -1;
		order: 3;
		display: none;
		width: 100%;
		flex-direction: column;
	}
	.ws-nav-list.is-open {
		display: flex;
	}
	.ws-nav-list li {
		border-right: none;
		border-bottom: 1px solid var(--ws-ink);
		text-align: center;
	}
	.ws-footer-main {
		grid-template-columns: 1fr 1fr;
	}
	.ws-masthead-link img {
		max-height: 64px;
	}
	.ws-logo-fallback {
		font-size: var(--ws-text-xl);
	}
}

@media (max-width: 480px) {
	.ws-footer-main {
		grid-template-columns: 1fr;
	}
	.ws-topbar-item:last-child {
		display: none; /* drop secondary topbar item on very small screens */
	}
}

/* =========================================================
   WOOCOMMERCE BREADCRUMB SPACING
   .woocommerce-breadcrumb is WooCommerce core's own default
   wrapper class (confirmed against wc-template-functions.php),
   present on every page that calls woocommerce_breadcrumb() —
   shop, category/tag archives, and single product pages. Adds
   visual separation between the header and the breadcrumb line.

   Uses padding-top, not margin-top: the breadcrumb <nav> is the
   FIRST CHILD of WooCommerce's own .woocommerce content wrapper
   div (printed by woocommerce_output_content_wrapper at priority
   10, immediately followed by woocommerce_breadcrumb at priority
   20 — confirmed against WooCommerce core's template structure).
   A margin-top on a first child with no border/padding on the
   parent collapses through that parent (standard CSS margin
   collapse behavior) and produces no visible gap at all — this
   was tried first and silently failed to create any spacing.
   padding-top doesn't collapse, so it reliably reserves the space
   regardless of the parent wrapper's own box model.
   ========================================================= */
.woocommerce-breadcrumb {
	padding-top: 25px;
}
