/* GA Shop All — category tiles + best-seller rows. Fonts come from the theme. */
.ga-shop-all {
	--gsa-ink: var(--wp--preset--color--ga-black, #231f20);
	--gsa-accent: var(--wp--preset--color--ga-crismon, #cc2027);
	--gsa-card: #fff;
	--gsa-muted: #6b6768;
	--gsa-gap: 16px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 32px 16px 16px;
	color: var(--gsa-ink);
}

.ga-shop-all ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ga-shop-all a {
	color: inherit;
	text-decoration: none;
}

/* The rows clip their scrolled-off cards, but only for children positioned
   inside them. WooCommerce sale prices carry absolutely positioned
   .screen-reader-text spans ("Original price was: …"); with no positioned
   ancestor they anchored to <body> and pushed the page ~800px wide on phones. */
.ga-shop-all__products,
.ga-shop-all__tiles ul,
.ga-shop-all__card {
	position: relative;
}

/* Swipe hint: phones only (see the 767px block) */
.ga-shop-all__swipe {
	display: none;
}

.ga-shop-all .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Tiles */
.ga-shop-all__tiles ul {
	display: flex;
	justify-content: center;
	gap: var(--gsa-gap);
}

.ga-shop-all__tiles li {
	flex: 1 1 0;
	max-width: 240px;
}

.ga-shop-all__tiles a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 16px 8px;
	background: var(--gsa-card);
	border-radius: 4px;
	height: 100%;
	text-align: center;
	font-weight: 500;
	transition: box-shadow 0.15s ease;
}

.ga-shop-all__tiles a:hover,
.ga-shop-all__tiles a:focus-visible {
	box-shadow: inset 0 0 0 2px var(--gsa-ink);
}

.ga-shop-all__tile-img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: #f1f2f2;
}

.ga-shop-all__tile-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Rows */
.ga-shop-all__row {
	margin-top: 48px;
	scroll-margin-top: 120px;
}

.ga-shop-all__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.ga-shop-all__head h2 {
	margin: 0;
	font-family: zuume-edge, sans-serif;
	/* Up to 64px: inside the site's 60–72px section-heading range, under the 75px page H1. */
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1;
	text-transform: uppercase;
}

/* Look comes from the theme's .btn.btn-black-border; only layout here */
.ga-shop-all__view-all {
	flex-shrink: 0;
	white-space: nowrap;
}

.ga-shop-all__products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--gsa-gap);
}

.ga-shop-all__card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--gsa-card);
	padding: 12px 12px 16px;
	border-radius: 4px;
	transition: box-shadow 0.15s ease;
}

.ga-shop-all__card a:hover,
.ga-shop-all__card a:focus-visible {
	box-shadow: inset 0 0 0 2px var(--gsa-ink);
}

.ga-shop-all__img {
	position: relative;
	display: block;
	aspect-ratio: 1;
	margin-bottom: 12px;
}

.ga-shop-all__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ga-shop-all__hover {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 2px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ga-shop-all__img .ga-shop-all__hover img {
	object-fit: cover;
}

@media (hover: hover) {
	.ga-shop-all__card a:hover .ga-shop-all__hover,
	.ga-shop-all__card a:focus-visible .ga-shop-all__hover {
		opacity: 1;
	}
}

.ga-shop-all__badges {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.ga-shop-all__badge {
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	background: var(--gsa-ink);
	color: #fff;
	border-radius: 2px;
}

.ga-shop-all__badge.is-sale {
	background: var(--gsa-accent);
}

.ga-shop-all__badge.is-new {
	background: #fff;
	color: var(--gsa-ink);
	box-shadow: inset 0 0 0 1.5px var(--gsa-ink);
}

.ga-shop-all__badge.is-best {
	background: #e7fc6d;
	color: var(--gsa-ink);
}

/* filter, not opacity: a3-lazy-load forces .lazy-loaded images to opacity 1 !important */
.ga-shop-all__card.is-sold-out img {
	filter: grayscale(0.4) opacity(0.55);
}

/* Trial (Oct/Nov 2026 review): product names in the heading face. Easy to
   revert: articulat-cf 16px / 500 / 1.3 was the previous look. */
.ga-shop-all__name {
	font-family: zuume-edge, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.05;
	margin-bottom: 6px;
}

.ga-shop-all__tagline {
	font-size: 14px;
	color: var(--gsa-muted);
	line-height: 1.3;
	margin-bottom: 8px;
}

.ga-shop-all__colors {
	display: flex;
	gap: 5px;
	margin-bottom: 10px;
}

.ga-shop-all__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(35, 31, 32, 0.35);
}

.ga-shop-all__price {
	margin-top: auto;
	font-size: 16px;
}

/* Old price: gray with a solid dark line through the middle of the digits (the
   font's native line-through is thin and sits low). !important because the theme
   forces .woocommerce-Price-amount to #000 !important. The line hangs off the
   amount itself at line-height 1, where the digits' center measures 0.483em
   from the top for zuume-edge (the <del> box adds descender room, so its 50%
   reads ~3px low). em keeps it centered at any price size. */
.ga-shop-all .ga-shop-all__price del {
	margin-right: 8px;
	text-decoration: none;
	color: #636466;
}

.ga-shop-all .ga-shop-all__price del .woocommerce-Price-amount {
	position: relative;
	display: inline-block;
	line-height: 1;
	color: #636466 !important;
}

.ga-shop-all .ga-shop-all__price del .woocommerce-Price-amount::after {
	content: "";
	position: absolute;
	left: -4%;
	width: 108%;
	top: 0.483em;
	height: 2px;
	margin-top: -1px;
	background: var(--gsa-ink);
	pointer-events: none;
}

.ga-shop-all .ga-shop-all__price ins {
	text-decoration: none;
}

/* Lifestyle tile: a 2x2 slot at the left (start) or right (end) of the row's top two lines */
.ga-shop-all__products.has-feature {
	grid-auto-flow: dense;
}

.ga-shop-all__feature {
	grid-row: 1 / span 2;
	grid-column: 1 / span 2;
}

.feature-end .ga-shop-all__feature {
	grid-column: -3 / span 2;
}

/* Scoped under .ga-shop-all to outrank ".ga-shop-all a { color: inherit }" */
.ga-shop-all .ga-shop-all__feature-inner {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 100%;
	min-height: 360px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--gsa-ink);
	color: #fff;
}

/* Scoped under .ga-shop-all: a3-lazy-load's ".lazy-loaded { transition: opacity 0.3s }"
   would otherwise replace the transform transition and the zoom would snap. */
.ga-shop-all .ga-shop-all__feature-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, opacity 0.3s;
}

.ga-shop-all a.ga-shop-all__feature-inner:hover .ga-shop-all__feature-img {
	transform: scale(1.03);
}

.ga-shop-all__feature-copy {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	padding: 64px 24px 24px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}

/* Dark text for light photos: ink copy over a white shade */
.ga-shop-all .ga-shop-all__feature.is-text-dark .ga-shop-all__feature-inner {
	background: #f1f2f2;
	color: var(--gsa-ink);
}

.ga-shop-all__feature.is-text-dark .ga-shop-all__feature-copy {
	background: linear-gradient(to top, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
}

/* Short label above the headline; same font, about half the size */
.ga-shop-all__feature-eyebrow {
	font-family: zuume-edge, sans-serif;
	font-weight: 700;
	font-size: clamp(18px, 1.8vw, 24px);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-bottom: -2px;
}

.ga-shop-all__feature-headline {
	font-family: zuume-edge, sans-serif;
	font-weight: 700;
	font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1;
	text-transform: uppercase;
}

.ga-shop-all__feature-text {
	font-size: 16px;
	line-height: 1.4;
	max-width: 36ch;
}

.ga-shop-all__feature-cta {
	margin-top: 6px;
	font-weight: 700;
	align-self: flex-start;
	border-bottom: 2px solid #fff;
	padding-bottom: 2px;
}

/* A white underline would vanish on dark-text (light photo) tiles */
.ga-shop-all__feature.is-text-dark .ga-shop-all__feature-cta {
	border-bottom-color: var(--gsa-ink);
}

/* Tablet: 3-up rows */
@media (max-width: 1023px) {
	.ga-shop-all__products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Phone: tiles and rows become swipe rows */
@media (max-width: 767px) {
	.ga-shop-all {
		padding-top: 24px;
	}

	.ga-shop-all .ga-shop-all__tiles ul,
	.ga-shop-all .ga-shop-all__products {
		display: flex;
		justify-content: flex-start; /* centered overflow would clip the first tile out of reach */
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
		scrollbar-width: none;
		margin: 0 -16px;
		padding: 0 16px 4px;
		gap: 12px;
	}

	.ga-shop-all__tiles ul::-webkit-scrollbar,
	.ga-shop-all__products::-webkit-scrollbar {
		display: none;
	}

	/* 3½ tiles across at any phone width: the half tile at the edge is the
	   "there's more" cue (the site has no edge-fade pattern). 52px = 16px left
	   inset + 3 × 12px gaps. */
	.ga-shop-all__tiles li {
		flex: 0 0 calc((100vw - 52px) / 3.5);
		scroll-snap-align: start;
	}

	.ga-shop-all__tiles a {
		padding: 12px 6px;
		font-size: 14px;
	}

	.ga-shop-all__tile-img {
		width: 72px;
		height: 72px;
	}

	.ga-shop-all__products li {
		flex: 0 0 62%;
		scroll-snap-align: start;
	}

	.ga-shop-all__products li.ga-shop-all__feature {
		flex-basis: 85%;
	}

	.ga-shop-all .ga-shop-all__feature-inner {
		min-height: 100%;
	}

	.ga-shop-all__row {
		margin-top: 36px;
	}

	/* Row counter: the site's slider pattern (".slider-counter" on the video
	   slider): "‹ 1 / 9 ›", body font, left-aligned, 24px below the slider. */
	.ga-shop-all__swipe {
		display: block;
		margin-top: 24px;
		font-size: 16px;
		line-height: 1;
	}

	.ga-shop-all__swipe.is-static {
		display: none;
	}

	.ga-shop-all .ga-shop-all__arrow {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		vertical-align: middle;
		/* 12px chevron, 36px tap area; negative margins keep the visual spacing tight */
		width: 36px;
		height: 36px;
		margin: -12px -8px;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--gsa-ink);
		cursor: pointer;
	}

	.ga-shop-all__arrow svg {
		display: block;
	}

	.ga-shop-all__arrow.is-prev svg {
		transform: scaleX(-1);
	}

	.ga-shop-all .ga-shop-all__arrow:disabled {
		opacity: 0.3;
		cursor: default;
	}

	.ga-shop-all__count {
		display: inline-block;
		padding: 0 8px;
		vertical-align: middle;
	}

	.ga-shop-all__name {
		font-size: 20px;
	}

	.ga-shop-all__head h2 {
		font-size: 36px;
	}

	/* The theme forces 48px side padding with !important; tighten it on phones so headings stay on one line. */
	.ga-shop-all a.ga-shop-all__view-all.btn.btn-black-border {
		padding: 9px 18px !important;
	}
}
