/* Shop Hero — breadcrumb + cross-fading promo slider on the shop landing.
   Values from the Claude Design export (reference-material/shop, design.md
   §Shop page). Also paints the shop templates' header (.tt-shop-header): the
   nav bar is transparent by design (it sits over the homepage hero), but on the
   store pages it sits on a solid ink band. */

.tt-shop-header {
	background: var(--wp--preset--color--ink, #141412);
}

/* Store notices ("added to your cart", errors) on the store templates: a
   full-width ink band with a red left rule, sharp corners, the page gutter. */
.tt-shop .wc-block-store-notices {
	margin: 0 !important;
}

.tt-shop .wc-block-components-notice-banner {
	margin: 0 !important;
	padding: 18px calc(50px + var(--tt-bleed)) !important;
	border: 0 !important;
	border-left: 4px solid var(--wp--preset--color--red, #cf2026) !important;
	border-radius: 0 !important;
	background: #1c1c1a !important;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif);
	font-size: 16px;
	color: #fff !important;
}

.tt-shop .wc-block-components-notice-banner > svg {
	background: var(--wp--preset--color--red, #cf2026) !important;
	fill: #fff !important;
}

.tt-shop .wc-block-components-notice-banner .wc-forward,
.tt-shop .wc-block-components-notice-banner a {
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--wp--preset--color--red-bright, #ff4349) !important;
	opacity: 1 !important;
	transition: color 0.2s ease;
}

.tt-shop .wc-block-components-notice-banner a:hover {
	color: #fff !important;
}

/* The store pages' design set the mailing-list title in Title Case ("On the
   Trigger"); the homepage Figma keeps it uppercase. */
.tt-shop .tt-newsletter__title {
	text-transform: none !important;
}

.tt-shop {
	background: #000;
}

/* The template's <main> is a flow-layout group, so WP's block gap
   (`:root :where(.is-layout-flow) > * { margin-block-start: 24px }`) would open
   a 24px black band above every section after the hero. Sections own their
   spacing (system.md §7). */
.tt-shop > * {
	margin-block: 0 !important;
}

/* ---- Section ------------------------------------------------------------- */
.tt-shop-hero {
	position: relative;
	height: 520px;
	overflow: hidden;
	background: #000;
	color: #fff;
}

.tt-shop-hero__slides {
	position: relative;
	height: 100%;
}

/* WP block-gap would push stacked/absolute slides down (same trap as the
   homepage hero — design.md §hero). */
.tt-shop-hero > *,
.tt-shop-hero__slides > .tt-shop-hero__slide,
.tt-shop-hero__slide > *,
.tt-shop-hero__content > * {
	margin-block: 0 !important;
}

/* ---- Slide ---------------------------------------------------------------- */
.tt-shop-hero__slide {
	position: relative;
	height: 100%;
}

.tt-shop-hero--slider .tt-shop-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.8s ease;
}

.tt-shop-hero--slider .tt-shop-hero__slide--active {
	opacity: 1;
	pointer-events: auto;
}

.tt-shop-hero__bg {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.tt-shop-hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important; /* beats WC's .woocommerce-page img { height: auto } */
	object-fit: cover;
	transform: scale(1);
	transition: transform 7s ease-out;
}

/* Slow push-in on the live slide. */
.tt-shop-hero__slide--active .tt-shop-hero__photo {
	transform: scale(1.06);
}

.tt-shop-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.tt-shop-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	box-sizing: border-box;
	height: 100%;
	max-width: calc(1100px + var(--tt-bleed));
	padding: 0 calc(50px + var(--tt-bleed)) 40px;
	transform: translateY(16px);
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tt-shop-hero__slide--active .tt-shop-hero__content,
.tt-shop-hero:not(.tt-shop-hero--slider) .tt-shop-hero__content {
	transform: none;
}

.tt-shop-hero__kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tt-shop-hero__label {
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 16px;
	line-height: 1.45;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--wp--preset--color--red-bright, #ff4349);
}

.tt-shop-hero__tag {
	padding: 3px 10px;
	border-radius: 0;
	background: var(--wp--preset--color--red, #cf2026);
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 12px;
	line-height: 1.45;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #fff;
}

.tt-shop-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif) !important;
	font-weight: 400 !important;
	font-size: 72px !important;
	line-height: 1.05 !important;
	text-transform: none !important; /* the export sets shop headings in Title Case */
	color: #fff !important;
	text-wrap: balance;
}

.tt-shop-hero__body {
	max-width: 560px;
	margin: 0;
	font-family: var(--wp--preset--font-family--encode-sans, "Encode Sans", sans-serif) !important;
	font-size: 16px !important;
	line-height: 1.6 !important;
	color: var(--wp--preset--color--off-white, #dadada) !important;
	text-wrap: pretty;
}

.tt-shop-hero__cta {
	align-self: flex-start;
	margin-top: 10px !important;
	padding: 9px 20px;
}

/* ---- Breadcrumb ---------------------------------------------------------- */
.tt-shop-hero__breadcrumb {
	position: absolute;
	top: 28px;
	left: calc(50px + var(--tt-bleed));
	z-index: 2;
	display: flex;
	gap: 10px;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-light, #adadad);
}

.tt-shop-hero__breadcrumb a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tt-shop-hero__breadcrumb a:hover,
.tt-shop-hero__breadcrumb [aria-current] {
	color: #fff;
}

/* ---- Slider UI (built by shop.js) --------------------------------------- */
.tt-shop-hero__ui {
	position: absolute;
	right: calc(50px + var(--tt-bleed));
	bottom: 40px;
	left: calc(50px + var(--tt-bleed));
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.tt-shop-hero--slider .tt-shop-hero__ui {
	display: flex;
}

.tt-shop-hero__bars {
	display: flex;
	gap: 10px;
}

.tt-shop-hero__bar {
	position: relative;
	width: 80px;
	height: 20px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
}

.tt-shop-hero__bar::before,
.tt-shop-hero__bar::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 0;
	height: 2px;
}

.tt-shop-hero__bar::before {
	right: 0;
	background: rgba(255, 255, 255, 0.3);
	transition: background-color 0.2s ease;
}

.tt-shop-hero__bar:hover::before {
	background: rgba(255, 255, 255, 0.6);
}

/* Progress fill. The animation IS the autoplay timer: shop.js advances on its
   animationend, so pausing on hover freezes the bar and the timer together. */
.tt-shop-hero__bar::after {
	width: 0;
	background: var(--wp--preset--color--red, #cf2026);
}

.tt-shop-hero__bar--active::after {
	animation: tt-shop-hero-fill 6s linear forwards;
}

.tt-shop-hero--paused .tt-shop-hero__bar--active::after {
	animation-play-state: paused;
}

@keyframes tt-shop-hero-fill {
	from { width: 0; }
	to { width: 100%; }
}

.tt-shop-hero__nav {
	display: flex;
	align-items: center;
	gap: 18px;
	font-family: var(--wp--preset--font-family--base-model, "Base Model", sans-serif);
	font-size: 14px;
	letter-spacing: 0.7px;
	color: #fff;
}

/* Arrows are .tt-btn--outline (the shared wipe hover); only the box is set here. */
.tt-shop-hero__arrow {
	width: 44px;
	height: 44px;
	padding: 0;
	font-family: inherit !important;
	font-size: 18px;
	line-height: 1;
}

/* ---- Mobile --------------------------------------------------------------- */
@media (max-width: 767px) {
	.tt-shop-hero {
		height: 560px;
	}

	.tt-shop-hero__overlay {
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.92) 78%);
	}

	/* Copy sits on the bottom, above the slider UI. */
	.tt-shop-hero__content {
		justify-content: flex-end;
		gap: 14px;
		max-width: none;
		padding: 0 16px 96px;
	}

	.tt-shop-hero__kicker {
		gap: 10px;
	}

	.tt-shop-hero__label {
		font-size: 13px;
	}

	.tt-shop-hero__tag {
		padding: 3px 8px;
		font-size: 11px;
	}

	.tt-shop-hero__title {
		font-size: 40px !important;
	}

	.tt-shop-hero__body {
		max-width: none;
		font-size: 15px !important;
		line-height: 1.55 !important;
	}

	.tt-shop-hero__cta {
		align-self: stretch;
		height: 48px;
		margin-top: 6px !important;
		padding: 0 20px;
		font-size: 17px;
	}

	.tt-shop-hero__breadcrumb {
		top: 18px;
		left: 16px;
		gap: 8px;
		font-size: 12px;
	}

	.tt-shop-hero__ui {
		right: 8px;
		bottom: 24px;
		left: 16px;
		gap: 16px;
	}

	.tt-shop-hero__bars {
		flex: 1;
		gap: 6px;
	}

	.tt-shop-hero__bar {
		flex: 1;
		width: auto;
		height: 44px;
	}

	.tt-shop-hero__bar::before,
	.tt-shop-hero__bar::after {
		top: 21px;
	}

	.tt-shop-hero__nav {
		gap: 4px;
		font-size: 13px;
	}

	.tt-shop-hero__counter {
		margin-right: 6px;
	}

	/* Mobile arrows are bare glyphs in the export — no outline or fill. */
	.tt-shop-hero__arrow {
		border: 0 !important;
	}

	.tt-shop-hero__arrow::before {
		display: none;
	}
}
