/* Astra's own container is centered + width-constrained, which fights the
   left-aligned grid-over-full-bleed-photo layout the mockups call for.
   Un-constrain it here rather than fighting it with more overrides. */
body.a5-shop-page .ast-container {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}
body.a5-shop-page .site-content {
	overflow: visible;
}

/* Same fixed-background technique as the page heroes (see the long comment in
   a5-site-styles/site.css) but stretched to cover the whole shop page instead
   of just a hero band -- there's no "cream fill" section here, the dark photo
   stays visible behind the product grid all the way down. */
.a5-shop-fixed-bg {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
	padding: 140px 24px 96px;
}
.a5-shop-fixed-bg::before {
	content: '';
	position: fixed;
	/* -40px/+80px parallax bleed -- see the long comment on
	   .a5-hero-fixed-bg::before in a5-site-styles/site.css for why. */
	top: -40px;
	left: 0;
	right: 0;
	/* Explicit height instead of bottom:0, and deliberately plain 100vh
	   (not 100dvh) -- see the long comment on .a5-hero-fixed-bg::before in
	   a5-site-styles/site.css for why. */
	height: calc(100vh + 80px);
	z-index: 0;
	background-color: #151616;
	background-image: url('https://after5athletics.com/wp-content/uploads/2026/07/PHD-Wallpaper01-scaled.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: translateY(var(--a5-parallax-y, 0px));
}
.a5-shop-fixed-bg > * {
	position: relative;
	z-index: 1;
}

.a5-shop-title {
	color: #f3f3e8;
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 32px;
}

.a5-shop-toolbar {
	display: flex;
	justify-content: flex-start;
	max-width: 66%;
	margin: 0 0 24px;
}
/* !important throughout: Astra's WooCommerce compat CSS ships
   ".woocommerce-page .woocommerce-ordering select{border:transparent;
   border-radius:0}" which is genuinely more specific than a plain
   ".a5-shop-sort select" (two classes vs one), so it wins outright even
   before considering load order. Same root cause as the header logo fix
   in header.css -- Astra's woocommerce-grid.min.css targets bare "select"
   and ".woocommerce-page select" broadly. */
.a5-shop-sort select {
	background: transparent !important;
	color: #f3f3e8 !important;
	border: 1px solid rgba(243, 243, 232, 0.35) !important;
	border-radius: 20px !important;
	padding: 8px 16px !important;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.a5-shop-sort select option {
	color: #151616;
}

.a5-shop-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 66%;
	margin: 0 0 16px;
}
.a5-shop-filters--sub {
	margin-top: -8px;
}
.a5-shop-pill {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 20px;
	border: 1px solid rgba(243, 243, 232, 0.35);
	color: rgba(243, 243, 232, 0.75);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.a5-shop-pill:hover {
	border-color: rgba(243, 243, 232, 0.6);
	color: #f3f3e8;
}
.a5-shop-pill.is-active {
	background-color: #f3f3e8;
	border-color: #f3f3e8;
	color: #151616;
}
.a5-shop-pill--sub {
	padding: 6px 14px;
	font-size: 11px;
}
.a5-shop-filter-desc {
	max-width: 66%;
	color: rgba(243, 243, 232, 0.6);
	font-size: 13px;
	margin: 0 0 24px;
}

.a5-shop-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(220px, 1fr));
	gap: 32px 24px;
	max-width: 66%;
}

/* AJAX filter transitions (shop.js): current content fades/settles down
   while the next filter's HTML loads, then incoming cards fade+rise in with
   a light stagger. */
#a5-shop-content {
	transition: opacity 0.2s ease, transform 0.2s ease;
}
#a5-shop-content.is-loading {
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
}
.a5-shop-card--enter {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.a5-shop-card--enter.a5-shop-card--enter-active {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	#a5-shop-content,
	#a5-shop-content.is-loading {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.a5-shop-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.a5-shop-card__image {
	display: block;
	aspect-ratio: 3 / 4;
	background-color: rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 16px;
}
/* !important: Astra's WooCommerce compat CSS ships ".woocommerce-page
   img{height:auto;max-width:100%}", which otherwise collapses this back to
   the photo's native square aspect ratio instead of filling/cropping to the
   card's portrait box -- same root cause as the header logo fix. */
.a5-shop-card__image img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: cover !important;
	display: block;
	transition: transform 0.3s ease;
}
.a5-shop-card:hover .a5-shop-card__image img {
	transform: scale(1.03);
}
.a5-shop-card__title {
	color: #f3f3e8;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 4px;
}
.a5-shop-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(243, 243, 232, 0.65);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.a5-shop-card__colorways {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 20px;
	border: 1px solid rgba(243, 243, 232, 0.35);
	font-size: 11px;
}

.a5-shop-empty {
	color: #f3f3e8;
	grid-column: 1 / -1;
}

.a5-shop-more {
	display: flex;
	justify-content: center;
	max-width: 66%;
	margin-top: 64px;
}
.a5-shop-more a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #f3f3e8;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.08em;
}

@media (max-width: 640px) {
	.a5-shop-fixed-bg {
		padding: 120px 20px 72px;
	}
	.a5-shop-fixed-bg::before {
		background-position: right center;
	}
	.a5-shop-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 24px 16px;
		max-width: 100%;
	}
	.a5-shop-toolbar {
		max-width: 100%;
	}
	.a5-shop-filters,
	.a5-shop-filter-desc {
		max-width: 100%;
	}
}
