/* ==========================================================================
   WeirdShirt — signature styling
   Color/type tokens come from theme.json. This file holds effects the
   Site Editor's style controls can't express: the sticker-title heading
   treatment, the eye motif, and WooCommerce proof-card styling.
   ========================================================================== */

:focus-visible {
	outline: 3px solid var(--wp--preset--color--pink);
	outline-offset: 2px;
}

/* theme.json's global blockGap (1.5rem) applies as margin between
   root-level blocks too — header, main, footer — which showed up as
   a visible gap of the page's default background color between dark
   sections. All real spacing already comes from each section's own
   padding, so this margin is pure unwanted side effect; kill it here
   rather than removing blockGap globally (which would also collapse
   the intentional spacing between elements inside each section). */
.wp-site-blocks > * {
	margin-top: 0;
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ---- Eye motif ----
   A small single-eye icon prefixing eyebrow labels, in place of a
   generic bullet — the recurring "we see weird" signature. */
.ws-eyebrow {
	font-family: var(--wp--preset--font-family--spec);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--pink);
}
/* U+25C9 FISHEYE — a plain circle-with-dot glyph standing in for the
   eye motif. Text-based on purpose: no SVG, no flex, so it can never
   again break the block-width constraint the way inline-flex did. */
.ws-eyebrow::before {
	content: "\25C9";
	display: inline-block;
	margin-right: 0.5em;
}

/* ---- Hero: sticker-title heading ----
   Thick outlined text with a solid offset shadow block — a gig-poster
   sticker look, distinct from a generic bold headline. */
.ws-sticker-title {
	color: var(--wp--preset--color--paper);
	-webkit-text-stroke: 3px var(--wp--preset--color--ink);
	text-shadow: 7px 7px 0 var(--wp--preset--color--acid);
	text-transform: uppercase;
}

.ws-badge-stamp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 108px;
	height: 108px;
	border: 3px dashed var(--wp--preset--color--mustard);
	border-radius: 50%;
	transform: rotate(-9deg);
	font-family: var(--wp--preset--font-family--spec);
	font-size: 0.7rem;
	color: var(--wp--preset--color--mustard);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.3;
	padding: 0.5rem;
}

.ws-hero {
	position: relative;
	overflow: hidden;
}

/* ---- Divi-managed pages (Home, About) ---- */
.ws-divi-canvas {
	padding: 0 !important;
	max-width: none !important;
}

/* ---- Header / primary nav ---- */
.ws-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	background: var(--wp--preset--color--void);
	transition: box-shadow 0.2s ease;
}
.ws-header.is-scrolled {
	box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.ws-header > * {
	margin: 0;
}
.ws-logo {
	max-width: 200px;
}
.ws-logo img {
	height: auto;
	transition: transform 0.15s ease;
}
.ws-logo a:hover img {
	transform: scale(1.03);
}
@media (max-width: 480px) {
	.ws-logo {
		max-width: 140px;
	}
}
.ws-header .wp-block-navigation a,
.ws-header .wp-block-site-title a {
	color: var(--wp--preset--color--paper) !important;
}
.ws-header .wp-block-navigation a {
	font-family: var(--wp--preset--font-family--spec);
	text-transform: uppercase;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.06em;
	text-decoration: none;
}
.ws-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--acid) !important;
}

/* Defensive: cap every icon in the header at a sane size. This is
   what should have been here from the start — without it, any icon
   that loses its source stylesheet (WooCommerce's, a plugin's, etc.)
   can render at native/unconstrained size instead of failing small. */
.ws-header svg {
	width: 22px;
	height: 22px;
	max-width: 22px;
	max-height: 22px;
	flex-shrink: 0;
}

.wc-block-mini-cart__badge {
	background: var(--wp--preset--color--pink) !important;
	color: var(--wp--preset--color--paper) !important;
	font-family: var(--wp--preset--font-family--spec);
}
.ws-header .wc-block-mini-cart__button svg,
.ws-header .wc-block-mini-cart__icon {
	color: var(--wp--preset--color--paper) !important;
}

/* ---- Product grid ---- */
.wc-block-product-template,
ul.products {
	gap: 2rem;
}

/* ---- Single product page (desktop) ----
   Constrains the main product wrapper to a tighter column on larger
   screens instead of stretching full-width. Desktop-only on purpose —
   60% width would be cramped on mobile. */
@media (min-width: 601px) {
	.woocommerce div.product {
		margin-bottom: 0 !important;
		position: relative !important;
		max-width: 60% !important;
	}
}

/* ---- Carousel enhancement ----
   Wrap any WooCommerce product-listing block (Product Collection,
   All Products, etc.) in a group with class "ws-carousel" and it
   becomes a horizontally-scrolling, snap-aligned carousel. Prev/next
   buttons are injected by custom.js — nothing to hand-author here,
   which is the point: this works regardless of which exact block or
   markup WooCommerce renders, since it only touches layout/overflow,
   not the block's own internal structure. */
.ws-carousel {
	position: relative;
}
.ws-carousel .wc-block-product-template,
.ws-carousel ul.products {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 0.5rem;
}
.ws-carousel .wc-block-product-template::-webkit-scrollbar,
.ws-carousel ul.products::-webkit-scrollbar {
	display: none;
}
.ws-carousel .wc-block-product-template > li,
.ws-carousel ul.products > li {
	flex: 0 0 260px !important;
	width: 260px !important;
	scroll-snap-align: start;
}
.ws-carousel-btn {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--wp--preset--color--void);
	color: var(--wp--preset--color--paper);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	padding: 0;
}
.ws-carousel-btn:hover {
	background: var(--wp--preset--color--pink);
}
.ws-carousel-btn.is-prev {
	left: -8px;
}
.ws-carousel-btn.is-next {
	right: -8px;
}
@media (max-width: 600px) {
	.ws-carousel-btn {
		display: none; /* native touch swipe handles it on mobile */
	}
}
.wc-block-product-price,
.woocommerce-Price-amount,
.price {
	font-family: var(--wp--preset--font-family--spec) !important;
	font-weight: 500;
}
.wc-block-components-product-sale-badge,
.onsale {
	background: var(--wp--preset--color--mustard) !important;
	color: var(--wp--preset--color--ink) !important;
	font-family: var(--wp--preset--font-family--spec) !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 2px !important;
}
.wc-block-grid__product,
li.product {
	transition: transform 0.15s ease;
}
.wc-block-grid__product:hover,
li.product:hover {
	transform: rotate(-1.5deg) translateY(-2px);
}

/* ---- Buttons ---- */
.wp-element-button,
button.button,
.wc-block-components-button {
	transition: transform 0.08s ease;
}
.wp-element-button:active,
button.button:active,
.wc-block-components-button:active {
	transform: translateY(1px) scale(0.99);
}

/* ---- Footer: same perforated-edge mechanic as the print-ticket
   footer, recolored for this brand. ---- */
.ws-ticket-footer {
	position: relative;
	background: var(--wp--preset--color--void);
	color: var(--wp--preset--color--paper);
}
.ws-ticket-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 12px;
	background-image: radial-gradient(circle, var(--wp--preset--color--paper) 4px, transparent 4.5px);
	background-size: 24px 24px;
	background-position: top center;
	background-repeat: repeat-x;
}
.ws-ticket-footer a {
	color: var(--wp--preset--color--paper);
}
.ws-ticket-footer a:hover {
	color: var(--wp--preset--color--acid);
}
.ws-ticket-footer .ws-eyebrow {
	color: var(--wp--preset--color--acid);
}

@media (max-width: 600px) {
	.ws-badge-stamp {
		display: none;
	}

	/* The "large" lead-paragraph size (used under the sticker-title
	   headline on Home and About) is a fixed rem value that reads fine
	   on desktop but is disproportionately big on narrow screens —
	   scale it back to the normal body size specifically on mobile. */
	p.has-large-font-size {
		font-size: var(--wp--preset--font-size--medium) !important;
	}
}
