/* ==========================================================================
   Te Tararā: child theme styles (loaded after Astra)
   Light theme only: product photos are shot on a light backdrop, so the page keeps
   one consistent ground. Olive text, the logo colour for the name, deep jade buttons, square corners.
   ========================================================================== */

:root {
	--tt-bg: #f2f3f0;
	--tt-surface: #e6e8e3;
	--tt-paper: #fbfbfa;
	/* Rex's original logo sage. Since v0.3.7 the logo file, business name and text all use
	   the olive --tt-ink (Matt, 11/10/2026): 7.3:1 on --tt-bg, 6.6:1 on --tt-surface;
	   muted 5.6:1 and 5.1:1. */
	--tt-jade: #7a867f;
	--tt-ink: #4c5337;
	--tt-text: #4c5337;
	--tt-muted: #5c6443;
	--tt-accent: #44524b;    /* buttons and links: 7.4:1 on --tt-bg */
	--tt-accent-hover: #2f3a34;
	--tt-line: #d3d8d2;
	--tt-font: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--tt-header-h: 88px;
	--tt-gutter: clamp(1rem, 3vw, 2.5rem);
	--tt-section: clamp(4rem, 8vw, 7rem);
	--tt-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
	font-family: var(--tt-font);
}

body {
	background: var(--tt-bg);
	color: var(--tt-text);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.woocommerce-loop-product__title {
	font-family: var(--tt-font);
	color: var(--tt-ink);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

h1, .entry-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
/* Astra's page title rule (2rem) outranks the line above. */
body header.entry-header .entry-title { font-size: 1.5rem; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.125rem); }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: 0; }

.tt-display {
	font-size: clamp(1.875rem, 3.4vw, 2.75rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
	max-width: 14ch;
}

.tt-lede {
	font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
	color: var(--tt-text);
	max-width: 38ch;
}

a { color: var(--tt-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--tt-accent-hover); }

:focus-visible {
	outline: 2px solid var(--tt-accent);
	outline-offset: 3px;
}

img { height: auto; }

/* --------------------------------------------------------------------------
   Buttons: square corners everywhere
   -------------------------------------------------------------------------- */

.wp-block-button__link,
.button,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wpcf7-submit,
.ast-button {
	border-radius: 0 !important;
	font-family: var(--tt-font);
	font-size: 0.9375rem !important;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.2 !important;
	padding: 0.95rem 1.75rem !important;
	transition: background-color 0.25s var(--tt-ease), color 0.25s var(--tt-ease), transform 0.15s var(--tt-ease);
	white-space: nowrap;
}

.wp-block-button__link:active,
.button:active,
.wpcf7-submit:active { transform: translateY(1px); }

.tt-button--primary .wp-block-button__link,
a.button.tt-button--primary,
.woocommerce .single_add_to_cart_button,
.wpcf7-submit {
	background: var(--tt-accent) !important;
	border: 1px solid var(--tt-accent) !important;
	color: #fff !important;
}

.tt-button--primary .wp-block-button__link:hover,
a.button.tt-button--primary:hover,
.woocommerce .single_add_to_cart_button:hover,
.wpcf7-submit:hover {
	background: var(--tt-accent-hover) !important;
	border-color: var(--tt-accent-hover) !important;
}

.tt-button--secondary .wp-block-button__link,
a.button.tt-button--secondary {
	background: transparent !important;
	border: 1px solid var(--tt-ink) !important;
	color: var(--tt-ink) !important;
}

.tt-button--secondary .wp-block-button__link:hover,
a.button.tt-button--secondary:hover {
	background: var(--tt-ink) !important;
	color: #fff !important;
}

.tt-button--light .wp-block-button__link {
	background: var(--tt-paper) !important;
	border: 1px solid var(--tt-paper) !important;
	color: var(--tt-ink) !important;
}

.tt-button--light .wp-block-button__link:hover {
	background: transparent !important;
	color: #fff !important;
}

.wp-block-buttons { gap: 0.75rem; }

.tt-link-arrow a {
	color: var(--tt-ink);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.tt-link-arrow a::after { content: " \2192"; }

/* --------------------------------------------------------------------------
   Header and footer (Astra builder)
   -------------------------------------------------------------------------- */

/* Inverted: olive bar, light lockup, menu and icons (Matt, 21/10/2026). */
.ast-primary-header-bar {
	background: var(--tt-ink) !important;
	border-bottom: 0 !important;
}

.site-primary-header-wrap { min-height: var(--tt-header-h); }

.site-title,
.site-title a {
	font-family: var(--tt-font);
	font-size: 1.125rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tt-bg) !important;
}

.ast-site-identity { padding: 0.5rem 0; }
.ast-logo-title-inline .site-logo-img { padding-right: 0.85rem; }

.main-header-menu .menu-link,
.ast-header-break-point .main-navigation .menu-link {
	font-size: 0.9375rem;
	letter-spacing: 0.03em;
	color: var(--tt-bg) !important;
}

/* The logo is one flat olive on transparent, so the filter gives the same mark in the light colour. */
.site-header .custom-logo { filter: brightness(0) invert(0.95); }
.site-header :focus-visible { outline-color: var(--tt-bg); }

/* Not the home anchors (About is /#about), which WordPress also marks current on the home page. */
.main-header-menu .current-menu-item > .menu-link:not([href*="#"]) { font-weight: 500; }
.ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link[href*="#"] { background: var(--tt-ink); }

/* Logo lockup: the footprint centred above the name, on every screen. */
.ast-site-identity { display: inline-flex; flex-direction: column; align-items: center; padding: 1rem 0 0.75rem; }
.ast-site-identity .site-logo-img { padding: 0 0 0.5rem !important; }
.ast-site-identity .custom-logo-link { display: block; line-height: 0; }

/* Cart: plain light bag, count in a small light disc. */
.ast-site-header-cart .ast-icon svg { fill: var(--tt-bg) !important; color: var(--tt-bg) !important; }
.ast-site-header-cart i.astra-icon::after { background: var(--tt-bg) !important; color: var(--tt-ink) !important; }

/* Desktop: lockup centred on top, menu centred below with the cart at the end of it. */
@media (min-width: 922px) {
	:root { --tt-header-total: 230px; }
	.ast-desktop .site-primary-header-wrap { min-height: 0; }
	.ast-below-header-bar {
		background: var(--tt-ink) !important;
		border-top: 0 !important;
		border-bottom: 0 !important;
	}
	.ast-desktop .site-below-header-wrap { min-height: 56px !important; }
	.site-header-below-section-center { align-items: center; gap: 0; }
	.site-header-below-section-center .ast-header-woo-cart { margin: 0 !important; padding: 0 !important; }
}

.main-header-menu .menu-link:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.main-header-menu .sub-menu {
	border: 1px solid rgb(242 243 240 / 0.2) !important;
	background: var(--tt-ink) !important;
	box-shadow: 0 12px 30px rgb(28 36 32 / 0.08);
}

/* Bag icon: quiet line icon, count as a small number. */
.ast-site-header-cart .ast-cart-menu-wrap .count,
.ast-site-header-cart .ast-addon-cart-wrap .count { border-radius: 0; }

.ast-site-header-cart .ast-woo-header-cart-info-wrap { display: none; }

.site-footer,
.ast-small-footer,
.site-below-footer-wrap {
	background: var(--tt-surface) !important;
	color: var(--tt-muted);
	font-size: 0.9375rem;
}

.site-below-footer-wrap { border-top: 1px solid var(--tt-line) !important; }

/* --------------------------------------------------------------------------
   Home page sections
   -------------------------------------------------------------------------- */

.tt-section { padding-block: var(--tt-section) 0; }
.tt-section:last-child { padding-bottom: var(--tt-section); }

.tt-section__head {
	margin-bottom: 2rem;
	gap: 1rem;
}

.tt-section__head h2 { margin: 0; }
.tt-section__head p { margin: 0; }

/* Hero: centred headline and intro over the workshop video. */
.tt-hero { padding-top: clamp(2rem, 4vw, 3.5rem); }

.tt-hero__intro { max-width: 46rem; margin-inline: auto; text-align: center; }

.tt-hero__intro .tt-display {
	max-width: 24ch;
	margin: 0 auto 1.5rem;
	text-wrap: balance;
}

/* One size and font for every intro paragraph, whatever the editor sets. */
.tt-hero__intro p {
	font-family: var(--tt-font) !important;
	font-size: clamp(1.0625rem, 1.2vw, 1.1875rem) !important;
	font-weight: 400 !important;
	line-height: 1.7 !important;
	letter-spacing: normal !important;
	color: var(--tt-text);
	max-width: 60ch;
	margin: 0 auto 1rem !important;
	text-wrap: pretty;
}

.tt-hero__intro .wp-block-buttons { justify-content: center; margin-top: 2rem !important; }

/* Workshop video (Rex's film, 30/10/2026): fills the first screen edge to edge, with the
   header laid over it on a transparent bar (Matt, 30/10/2026). The olive wash keeps the
   light header and intro text readable. */
.home #page { position: relative; }

.home #masthead {
	position: absolute;
	inset: 0 0 auto;
	z-index: 20;
}

.home .ast-primary-header-bar,
.home .ast-below-header-bar { background: transparent !important; }

/* Phones: the bar turns olive again while the menu is open, to match the drop-down. */
.home.ast-main-header-nav-open .ast-primary-header-bar { background: var(--tt-ink) !important; }

.home .entry-content > .tt-hero:has(.tt-hero__video) {
	padding: 0 !important;
	--tt-masthead-h: 126px;
}

@media (min-width: 922px) {
	.home .entry-content > .tt-hero:has(.tt-hero__video) { --tt-masthead-h: var(--tt-header-total); }
}

.tt-hero__intro:has(.tt-hero__video) {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: none;
	min-height: 100svh;
	margin: 0 !important;
	padding: calc(var(--tt-masthead-h) + clamp(1.5rem, 4vw, 3rem)) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem);
	background: var(--tt-ink);
}

.tt-hero__video,
.tt-hero__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
}

.tt-hero__video video { object-fit: cover; }

.tt-hero__video::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgb(47 52 34 / 0.74), rgb(47 52 34 / 0.6) 45%, rgb(47 52 34 / 0.76));
}

.tt-hero__intro:has(.tt-hero__video) .tt-display,
.tt-hero__intro:has(.tt-hero__video) p { color: var(--tt-paper) !important; }

.tt-hero__intro:has(.tt-hero__video) .tt-button--primary .wp-block-button__link {
	background: var(--tt-paper) !important;
	border-color: var(--tt-paper) !important;
	color: var(--tt-ink) !important;
}

.tt-hero__intro:has(.tt-hero__video) .tt-button--primary .wp-block-button__link:hover {
	background: transparent !important;
	color: var(--tt-paper) !important;
}

.tt-hero__intro:has(.tt-hero__video) .tt-button--secondary .wp-block-button__link {
	border-color: var(--tt-paper) !important;
	color: var(--tt-paper) !important;
}

.tt-hero__intro:has(.tt-hero__video) .tt-button--secondary .wp-block-button__link:hover {
	background: var(--tt-paper) !important;
	color: var(--tt-ink) !important;
}

/* Gallery: masonry of Rex's work under the hero video. Four columns (two pairs on phones),
   each a stack of photos in mixed shapes. inc/gallery.php sorts the photos into columns and
   gives each tile its shape as --tt-r (height over width). Every tile then grows in
   proportion to its height until the column is as tall as its neighbour, so the columns
   always end level whatever photos Rex adds. */
.tt-masonry {
	--tt-masonry-gap: clamp(0.75rem, 1.6vw, 1.25rem);
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--tt-masonry-gap);
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

.tt-masonry > .tt-masonry__col {
	display: flex;
	flex-direction: column;
	gap: var(--tt-masonry-gap);
	margin: 0 !important;
}

.tt-masonry__col > .tt-masonry__item {
	display: flex;
	flex-direction: column;
	flex: var(--tt-r, 1.25) 1 auto;
	margin: 0 !important;
}

.tt-masonry__item > img,
.tt-masonry__item > video {
	display: block;
	flex: 1 1 auto;
	width: 100% !important;
	height: auto;
	min-height: 0;
	aspect-ratio: 1 / var(--tt-r, 1.25);
	object-fit: cover;
	background: var(--tt-surface);
}

/* Moving tiles (assets/js/gallery-media.js): a second view of the piece laid over the first, faded in on
   hover (desktop) or once the tile passes mid-screen (phones). */
.tt-media { position: relative; overflow: hidden; }
.tt-masonry__item > img.tt-media__hover {
	position: absolute;
	inset: 0;
	height: 100% !important;
	aspect-ratio: auto;
	opacity: 0;
	transition: opacity 0.6s var(--tt-ease);
	pointer-events: none;
}
.tt-media.is-swapped > .tt-media__hover { opacity: 1; }

/* Moving tiles Rex adds (inc/gallery.php, theme 0.8.0): his photos and videos of one piece
   stacked in one tile. The first sets the tile's size; gallery-media.js fades the rest in
   one after another (.is-on), and the first shows again when the last fades out. */
.tt-masonry__item > .tt-seq__part {
	position: absolute;
	inset: 0;
	height: 100% !important;
	aspect-ratio: auto;
	opacity: 0;
	transition: opacity 0.8s var(--tt-ease);
	pointer-events: none;
}
.tt-masonry__item > .tt-seq__part.is-on { opacity: 1; }

/* Captions: Rex's description of the piece in white over a grey wash, shown on hover with a
   mouse, or on a tap on phones and tablets (assets/js/gallery-media.js adds .is-captioned). */
.tt-masonry__item { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.tt-masonry__caption {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: clamp(1rem, 2vw, 1.75rem);
	background: rgb(34 36 34 / 0.66);
	color: #fff;
	font-family: var(--tt-font);
	font-size: 1rem;
	line-height: 1.45;
	text-align: center;
	opacity: 0;
	transition: opacity 0.4s var(--tt-ease);
	pointer-events: none;
}
.tt-masonry__item.is-captioned > .tt-masonry__caption { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
	.tt-masonry__item:hover > .tt-masonry__caption { opacity: 1; }
}
@media (max-width: 781px) {
	.tt-masonry__caption { padding: 0.75rem; font-size: 0.875rem; line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
	.tt-masonry__item > img.tt-media__hover,
	.tt-masonry__item > .tt-seq__part,
	.tt-masonry__caption { transition: none; }
}

@media (max-width: 781px) {
	.tt-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Signed-in editors only: the way to Rex's "My gallery" page (inc/gallery.php). */
.tt-gallery-edit {
	position: fixed;
	z-index: 50;
	right: 1rem;
	bottom: 1rem;
	padding: 0.9rem 1.4rem;
	border-radius: 999px;
	background: var(--tt-accent);
	color: var(--tt-paper) !important;
	font-size: 1.0625rem;
	font-weight: 500;
	text-decoration: none !important;
	box-shadow: 0 6px 24px rgb(28 36 32 / 0.28);
}

.tt-gallery-edit:hover,
.tt-gallery-edit:focus-visible { background: var(--tt-accent-hover); }

/* Shop by: two tall tiles with a caption link, then type chips. */
.tt-shop-by__tiles { gap: clamp(1rem, 2.5vw, 2rem) !important; margin-bottom: 2rem !important; }

.tt-tile { margin: 0; }

.tt-tile > a { display: block; overflow: hidden; background: var(--tt-surface); }

.tt-tile img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 0.8s var(--tt-ease);
}

.tt-tile > a:hover img { transform: scale(1.025); }

.tt-tile figcaption {
	margin-top: 1rem;
	font-size: clamp(1.4rem, 2.2vw, 1.875rem);
	text-align: left;
}

.tt-tile figcaption a {
	color: var(--tt-ink);
	text-decoration: none;
}

.tt-tile figcaption a::after { content: " \2192"; font-size: 0.8em; }

.tt-type-links,
.tt-filters ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tt-type-links a,
.tt-filters__type a {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid var(--tt-line);
	color: var(--tt-ink);
	font-size: 0.9375rem;
	text-decoration: none;
	transition: border-color 0.2s var(--tt-ease), background-color 0.2s var(--tt-ease);
}

.tt-type-links a:hover,
.tt-filters__type a:hover { border-color: var(--tt-ink); }

/* About Rex and Visit the studio: one band in the header colours (olive, light text).
   Desktop: Rex's photo with the map under it on the left; the words run down the right,
   and the map stretches to end level with them. Phones: photo, words, map. */
.tt-story {
	--tt-story-light: color-mix(in srgb, var(--tt-bg) 72%, var(--tt-ink));
	display: grid;
	grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
	grid-template-areas: "photo text" "map text";
	grid-template-rows: auto 1fr;
	column-gap: clamp(2rem, 6vw, 6rem);
	row-gap: clamp(1rem, 2vw, 1.5rem);
	margin-top: var(--tt-section);
	padding: clamp(3.5rem, 7vw, 6rem) max(var(--tt-gutter), calc((100% - 1280px) / 2)) !important;
	background: var(--tt-ink);
	color: var(--tt-bg);
}

.tt-story > * { margin: 0 !important; }
.tt-story__photo { grid-area: photo; }
.tt-story__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
.tt-story__text { grid-area: text; align-self: start; }
.tt-story__map { grid-area: map; display: flex; flex-direction: column; }
.tt-story__map > .tt-studio__map { flex: 1 1 auto; min-height: 18rem; background: color-mix(in srgb, var(--tt-ink) 80%, #000); }

.tt-story h2,
.tt-story p,
.tt-story address { color: var(--tt-bg) !important; }
/* Every line of text in the band runs the full width of the text column (Matt, 03/11/2026). */
.tt-story .tt-story__text :is(p, address, .tt-studio__details p) { max-width: none; }
.tt-story h2.tt-story__visit { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; scroll-margin-top: calc(var(--tt-header-h) + 1.5rem); }
.tt-story .tt-studio__details { margin-top: 2rem; }
.tt-story .tt-studio__details h3 { color: var(--tt-story-light); }

.tt-story a.button.tt-button--primary {
	background: var(--tt-bg) !important;
	border-color: var(--tt-bg) !important;
	color: var(--tt-ink) !important;
}

.tt-story a.button.tt-button--primary:hover {
	background: transparent !important;
	color: var(--tt-bg) !important;
}

.tt-story :focus-visible { outline-color: var(--tt-bg); }

@media (max-width: 781px) {
	.tt-story {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "photo" "text" "map";
		grid-template-rows: auto;
		row-gap: 2rem;
	}
	.tt-story__map > .tt-studio__map { min-height: 20rem; }
}

/* Custom pieces band */
.tt-custom {
	margin-top: var(--tt-section);
	padding: clamp(3rem, 6vw, 5rem) var(--tt-gutter) !important;
}

/* Straight on from the olive About and Visit band, with no gap between them. */
.tt-story + .tt-custom { margin-top: 0 !important; }

.tt-custom .wp-block-cover__inner-container { max-width: 1280px; margin-inline: auto; }
.tt-custom h2,
.tt-custom p { color: #fff; max-width: 34ch; }

/* Visit the studio (home #visit, Enquire page) */
.tt-studio {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	margin-top: 2rem;
}

@media (min-width: 768px) {
	.tt-studio { grid-template-columns: minmax(16rem, 2fr) minmax(0, 3fr); align-items: stretch; }
}

.tt-studio__details h3 {
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tt-muted);
	margin: 0 0 0.35rem;
}

.tt-studio__details address,
.tt-studio__details p { font-style: normal; margin: 0 0 1.5rem; max-width: 40ch; }
.tt-studio__details .tt-studio__actions { margin: 0; }

.tt-studio__map { min-height: 20rem; background: var(--tt-surface); }
.tt-studio__map iframe { display: block; width: 100%; height: 100%; min-height: 20rem; border: 0; }

.entry-content .tt-enquire-visit { margin-top: clamp(2rem, 5vw, 3.5rem); padding: 2rem 0 0 !important; border-top: 1px solid var(--tt-line); }

/* Collaborators */
.tt-collab-grid { gap: clamp(1.5rem, 3vw, 2.5rem) !important; margin-block: 2rem; }
.tt-collab h3 { margin: 1rem 0 0.25rem; }
.tt-collab__logo { margin: 0; }
.tt-collab__logo img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--tt-surface); }
/* A gallery photo or full-bleed logo rather than a small mark: shown at its own landscape shape. */
.tt-collab__logo.is-wide img { aspect-ratio: 960 / 603; object-fit: cover; background: #fff; }
.tt-collab__town { color: var(--tt-muted); margin-bottom: 0.75rem; }

/* --------------------------------------------------------------------------
   Gallery: filters and product cards
   -------------------------------------------------------------------------- */

.woocommerce-products-header__title.page-title { margin-bottom: 1.5rem; }

.tt-filters {
	display: grid;
	gap: 1.25rem;
	margin: 0 0 2.5rem;
}

.tt-filters__gender { gap: 2rem !important; border-bottom: 1px solid var(--tt-line); }

.tt-filters__gender a {
	display: inline-block;
	padding: 0 0 0.75rem;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: var(--tt-muted);
	font-size: 1.125rem;
	text-decoration: none;
}

.tt-filters__gender a:hover { color: var(--tt-ink); }
.tt-filters__gender a[aria-current] { color: var(--tt-ink); border-bottom-color: var(--tt-ink); }

.tt-filters__type a[aria-current] {
	background: var(--tt-ink);
	border-color: var(--tt-ink);
	color: #fff;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2.5rem 1rem;
	margin: 0 !important;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

@media (min-width: 768px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 1.5rem; }
}

@media (min-width: 1024px) {
	.woocommerce ul.products.columns-4,
	.woocommerce-page ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.woocommerce ul.products li.product.tt-card,
.woocommerce-page ul.products li.product.tt-card {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	padding: 0 !important;
	text-align: left;
}

.tt-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.tt-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--tt-surface);
}

.tt-card__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	margin: 0 !important;
}

.tt-card__img--alt { opacity: 0; transition: opacity 0.45s var(--tt-ease); }

@media (hover: hover) {
	.tt-card__link:hover .tt-card__img--alt { opacity: 1; }
}

.tt-card__body {
	display: grid;
	gap: 0.15rem;
	padding-top: 0.9rem;
}

.woocommerce ul.products li.product .tt-card__title,
.tt-card__title {
	font-size: 1rem !important;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.35;
	margin: 0;
	padding: 0 !important;
	color: var(--tt-ink);
}

.tt-card__link:hover .tt-card__title { text-decoration: underline; text-underline-offset: 0.2em; }

.tt-card__stone { color: var(--tt-muted); font-size: 0.9375rem; }

.tt-card__status,
.tt-card__status .amount { color: var(--tt-ink); font-size: 0.9375rem; }

.tt-card--sold .tt-card__img { filter: saturate(0.6); opacity: 0.85; }
.tt-sold { color: var(--tt-muted); }

.tt-price-request { font-style: normal; color: var(--tt-ink); }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */

.single-product .site-content > .ast-container { padding-top: clamp(1rem, 3vw, 2.5rem); }

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
	width: auto !important;
	margin: 0 !important;
	background: var(--tt-surface);
}

.woocommerce div.product div.images .woocommerce-product-gallery__image:first-child { grid-column: 1 / -1; }

.woocommerce div.product div.images img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.woocommerce div.product .product_title {
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	margin-bottom: 0.5rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--tt-ink) !important;
	font-size: 1.375rem !important;
	font-weight: 400;
}

.woocommerce div.product .woocommerce-product-details__short-description { color: var(--tt-text); }

.woocommerce div.product form.cart { margin: 1.5rem 0 0.75rem; }
.woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; }
.woocommerce div.product p.stock.out-of-stock { color: var(--tt-muted); font-size: 1rem; }

.tt-enquire { margin: 0 0 2rem; }
.tt-enquire .button { width: 100%; text-align: center; }

.tt-description { padding-top: 1.5rem; border-top: 1px solid var(--tt-line); }

.tt-specs { margin: 1.5rem 0; }

.tt-specs .woocommerce-product-attributes {
	border: 0 !important;
	margin: 0;
	width: 100%;
}

.tt-specs .woocommerce-product-attributes th,
.tt-specs .woocommerce-product-attributes td {
	border: 0 !important;
	background: none !important;
	padding: 0.3rem 0 !important;
	font-size: 0.9375rem;
	font-style: normal;
	vertical-align: top;
}

.tt-specs .woocommerce-product-attributes th {
	width: 38%;
	color: var(--tt-muted);
	font-weight: 400;
	text-align: left;
}

.tt-specs .woocommerce-product-attributes td p { margin: 0; }

.tt-notes { border-top: 1px solid var(--tt-line); }

.tt-note { border-bottom: 1px solid var(--tt-line); }

.tt-note summary {
	cursor: pointer;
	list-style: none;
	padding: 1rem 0;
	color: var(--tt-ink);
	font-weight: 500;
	display: flex;
	justify-content: space-between;
}

.tt-note summary::-webkit-details-marker { display: none; }
.tt-note summary::after { content: "+"; font-weight: 300; font-size: 1.25rem; line-height: 1; }
.tt-note[open] summary::after { content: "\2212"; }
.tt-note p { color: var(--tt-text); font-size: 0.9375rem; }

.woocommerce .related.products { margin-top: 0; padding-top: var(--tt-section); clear: both; }
.woocommerce .related.products > h2 { margin-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Enquiry page and forms
   -------------------------------------------------------------------------- */

.tt-enquire.wp-block-columns { gap: clamp(2rem, 6vw, 6rem) !important; }

.tt-enquiry-pieces__label {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--tt-ink);
	margin: 2rem 0 0.75rem;
	padding: 0;
}

.tt-mini {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 0.25rem 1rem;
	align-items: center;
	color: var(--tt-ink);
	text-decoration: none;
}

.tt-mini__img {
	grid-row: span 2;
	width: 64px !important;
	height: 80px !important;
	object-fit: cover;
	background: var(--tt-surface);
}

.tt-mini__name { font-weight: 500; }
.tt-mini__status { color: var(--tt-muted); font-size: 0.9375rem; }

.tt-mini--check { grid-template-columns: auto 64px 1fr; cursor: pointer; }
.tt-mini--check input { grid-row: span 2; width: 1.15rem; height: 1.15rem; accent-color: var(--tt-accent); }
.tt-mini--check .tt-mini__name { grid-row: span 2; }

.tt-viewed { border: 0; padding: 0; margin: 0; }
.tt-viewed__help { color: var(--tt-muted); font-size: 0.9375rem; margin-bottom: 1rem; }
.tt-viewed__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }

.tt-form label,
.woocommerce form .form-row label {
	display: block;
	color: var(--tt-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	margin-bottom: 0.4rem;
}

.tt-form input[type="text"],
.tt-form input[type="email"],
.tt-form input[type="tel"],
.tt-form select,
.tt-form textarea,
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce-page form .form-row .input-text {
	width: 100%;
	background: var(--tt-paper) !important;
	border: 1px solid #a9b1ab !important;
	border-radius: 0 !important;
	color: var(--tt-ink) !important;
	font-size: 1rem;
	padding: 0.8rem 0.9rem !important;
	box-shadow: none !important;
}

.tt-form input:focus,
.tt-form select:focus,
.tt-form textarea:focus,
.woocommerce form .form-row .input-text:focus {
	border-color: var(--tt-accent) !important;
	outline: 2px solid var(--tt-accent);
	outline-offset: 0;
}

.wpcf7-not-valid-tip { color: #9b2c2c; font-size: 0.875rem; margin-top: 0.35rem; }
.wpcf7 form .wpcf7-response-output { margin: 1.5rem 0 0; padding: 1rem; border-width: 1px; }

/* --------------------------------------------------------------------------
   WooCommerce general: notices, cart, checkout
   -------------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 0;
	border-top-color: var(--tt-accent) !important;
	background: var(--tt-paper) !important;
}

.woocommerce-message::before,
.woocommerce-info::before { color: var(--tt-accent) !important; }

.woocommerce table.shop_table { border-radius: 0; border-color: var(--tt-line); }

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
	.tt-shop-by__tiles { display: grid !important; grid-template-columns: 1fr 1fr; }
	.tt-tile figcaption { font-size: 1.25rem; }
	.tt-filters__gender { gap: 1.25rem !important; }
	.tt-filters__type { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--tt-gutter) * -1); padding-inline: var(--tt-gutter) !important; }
	.tt-filters__type a { white-space: nowrap; }
}

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

/* --------------------------------------------------------------------------
   Fixes after first review
   -------------------------------------------------------------------------- */

.entry-content .tt-type-links { padding-left: 0 !important; margin-left: 0 !important; }
.tt-type-links a,
.tt-link-arrow a,
.tt-filters a { text-decoration: none !important; }

.tt-custom .wp-block-cover__inner-container h2,
.tt-custom .wp-block-cover__inner-container p { color: #fff !important; }

.tt-collabs-home .tt-collab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

@media (min-width: 1024px) {
	.tt-collabs-home .tt-collab-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

.entry-content .tt-collab h3 { font-size: 1.125rem; }

.home .site-content .ast-container,
.home #primary { padding-bottom: 0 !important; margin-bottom: 0 !important; }

.single-product #primary { margin-top: 0 !important; }
.woocommerce div.product form.cart { display: block !important; }
.woocommerce div.product form.cart .single_add_to_cart_button { margin: 0 !important; float: none !important; }
.woocommerce div.product form.cart .quantity { display: none; } /* every piece is sold individually */
.tt-specs .woocommerce-product-attributes td,
.tt-specs .woocommerce-product-attributes td p { font-style: normal !important; }
.tt-specs .woocommerce-product-attributes th,
.tt-specs .woocommerce-product-attributes td { line-height: 1.5 !important; }
.tt-specs .woocommerce-product-attributes td p { margin: 0 !important; padding: 0 !important; }

/* Enquiry form layout */
.wpcf7 .hidden-fields-container { display: none !important; }
.tt-form p { margin: 0 0 1.25rem; }
.tt-form br { display: none; }
.tt-form select { height: auto !important; line-height: 1.4 !important; }
.entry-content .tt-enquire.wp-block-columns { padding-inline: 0 !important; margin-top: 0; }
a.tt-mini, .tt-mini .tt-mini__name, .tt-mini .tt-mini__status { text-decoration: none; }
a.tt-mini:hover .tt-mini__name { text-decoration: underline; text-underline-offset: 0.2em; }
.tt-enquiry-piece { margin-bottom: 1rem; }
.entry-content .tt-collab-grid { padding-inline: 0 !important; }

.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-breadcrumb a { color: var(--tt-muted) !important; font-size: 0.875rem; }

/* ==========================================================================
   Round 2: shell, product page, shopping flow
   ========================================================================== */

/* --- Footer ------------------------------------------------------------- */

.site-primary-footer-wrap {
	background: var(--tt-surface) !important;
	padding-block: clamp(3rem, 6vw, 4.5rem) !important;
	border-top: 1px solid var(--tt-line);
}

.site-footer,
.site-footer p,
.site-footer li { color: var(--tt-text); font-size: 0.9375rem; }

.site-footer a { color: var(--tt-ink) !important; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.tt-footer-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	font-size: 1.125rem !important;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tt-ink) !important;
	margin-bottom: 1rem;
}

.tt-footer-logo { width: 34px; height: auto; flex: none; }

.site-footer .ast-builder-html-element p:not(.tt-footer-brand):not(.tt-footer-head) { max-width: 34ch; }

.tt-footer-head,
.site-footer-primary-section-2::before {
	display: block;
	color: var(--tt-muted) !important;
	font-size: 0.8125rem !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.75rem;
}

.site-footer-primary-section-2::before { content: "Shop"; }
.tt-footer-head:not(:first-child) { margin-top: 1.75rem; }

.tt-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }

.site-footer .footer-nav-wrap .menu-link { padding: 0.225rem 0 !important; color: var(--tt-ink) !important; }

.site-below-footer-wrap { padding-block: 1.25rem !important; }
.site-below-footer-wrap .ast-footer-copyright p { font-size: 0.875rem; color: var(--tt-muted); }

/* --- Mobile menu -------------------------------------------------------- */

.ast-mobile-header-content,
.ast-header-break-point .main-header-bar-navigation {
	background: var(--tt-ink) !important;
	border-top: 1px solid rgb(242 243 240 / 0.2);
}

.ast-header-break-point .main-navigation .menu-item .menu-link {
	font-size: 1.125rem;
	padding: 0.9rem var(--tt-gutter) !important;
	border-bottom: 1px solid rgb(242 243 240 / 0.2) !important;
}

.ast-header-break-point .main-navigation .sub-menu .menu-link { font-size: 1rem; padding-left: calc(var(--tt-gutter) + 1rem) !important; }

/* Inverted like the header bar: Astra paints current and hovered rows and the sub-menu arrows light. */
.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link,
.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link:hover,
.ast-builder-menu-mobile .main-navigation .sub-menu {
	background: var(--tt-ink) !important;
	color: var(--tt-bg) !important;
}
.ast-builder-menu-mobile .main-navigation .ast-menu-toggle {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--tt-bg) !important;
}

.ast-mobile-menu-trigger-minimal { color: var(--tt-bg) !important; }
.ast-mobile-menu-trigger-minimal .ast-mobile-svg { fill: var(--tt-bg) !important; }

/* Phones and tablets: cart left, lockup centred, menu button right, the two icons level. */
#ast-mobile-header .site-header-section-left,
#ast-mobile-header .site-header-primary-section-right { align-items: center; }
#ast-mobile-header .ast-site-header-cart,
#ast-mobile-header .ast-site-header-cart-li,
#ast-mobile-header .ast-site-header-cart .cart-container,
#ast-mobile-header .ast-addon-cart-wrap { display: flex; align-items: center; line-height: 0; }

/* --- Gallery intro, empty state, 404 ------------------------------------ */

.term-description,
.page-description,
.woocommerce-products-header .page-description { max-width: 60ch; color: var(--tt-text); margin-bottom: 1.5rem; }

.term-description p,
.page-description p { margin: 0; }

.tt-empty {
	padding: clamp(2.5rem, 6vw, 4rem) 0;
	max-width: 46ch;
}

.tt-empty h2 { margin-bottom: 0.75rem; }
.tt-empty__actions,
.tt-404__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.tt-404__intro { padding: clamp(2rem, 6vw, 4rem) 0 0; max-width: 40rem; }
.tt-404__intro h1 { margin-bottom: 1rem; }
.tt-404__pieces { padding-block: var(--tt-section); }
.tt-404__pieces h2 { margin-bottom: 2rem; }

/* --- Product page: gallery and summary ---------------------------------- */

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image:first-child { grid-column: 1 / -1; }

.woocommerce div.product .woocommerce-product-gallery__trigger {
	top: 1rem !important;
	right: 1rem !important;
	border-radius: 0 !important;
	background: var(--tt-paper) !important;
}

@media (min-width: 922px) {
	/* Photos in a narrow column (still 4:5), the details take the rest. */
	.woocommerce div.product div.images { width: 400px !important; }
	.woocommerce div.product div.summary { width: calc(100% - 400px - 4rem) !important; }

	/* No sticky details: the column is taller than the screen, so pinning it
	   hid the care notes and slid it over the related pieces below. */
}

@media (max-width: 921px) {
	.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
		display: flex !important;
		gap: 0.5rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		justify-content: safe center;
	}

	.woocommerce div.product div.images .woocommerce-product-gallery__wrapper::-webkit-scrollbar { display: none; }

	.woocommerce div.product div.images .woocommerce-product-gallery__image {
		flex: 0 0 62%;
		scroll-snap-align: start;
	}
}

.tt-unique {
	color: var(--tt-muted);
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 0.5rem;
}

.tt-visit-note {
	margin: -0.75rem 0 2rem;
	padding: 1rem 1.25rem;
	background: var(--tt-paper);
	border: 1px solid var(--tt-line);
	font-size: 0.9375rem;
}

.tt-visit-note p { margin: 0; }
.tt-visit-note p + p { margin-top: 0.5rem; }
.tt-visit-note a { color: var(--tt-accent); text-decoration: underline; text-underline-offset: 0.2em; }

.tt-trust {
	list-style: none;
	margin: -0.75rem 0 2rem;
	padding: 0;
	display: grid;
	gap: 0.35rem;
	font-size: 0.9375rem;
	color: var(--tt-text);
}

.tt-trust li { padding-left: 1.4rem; position: relative; }
.tt-trust li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.55em;
	width: 0.55rem;
	height: 0.3rem;
	border-left: 1.5px solid var(--tt-accent);
	border-bottom: 1.5px solid var(--tt-accent);
	transform: rotate(-45deg);
}

/* --- Cart and checkout (WooCommerce blocks) ------------------------------ */

.wc-block-cart,
.wc-block-checkout,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout { font-family: var(--tt-font); color: var(--tt-text); }

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	border-radius: 0 !important;
	background: var(--tt-accent) !important;
	border: 1px solid var(--tt-accent) !important;
	color: #fff !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em;
	min-height: 3.25rem;
}

.wc-block-components-button:not(.is-link):hover { background: var(--tt-accent-hover) !important; }

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-select select,
.wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: 0 !important;
	border-color: #a9b1ab !important;
	background-color: var(--tt-paper) !important;
	color: var(--tt-ink) !important;
	font-family: var(--tt-font) !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.wc-blocks-components-select__select:focus {
	border-color: var(--tt-accent) !important;
	box-shadow: 0 0 0 1px var(--tt-accent) !important;
}

.wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
.wc-block-components-radio-control__input { border-radius: 0; accent-color: var(--tt-accent); }

.wc-block-components-radio-control__input { border-radius: 50%; }

.wc-block-components-panel,
.wc-block-components-totals-wrapper,
.wc-block-cart-items td,
.wc-block-cart-items th,
.wc-block-components-checkout-step,
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option { border-color: var(--tt-line) !important; }

.wc-block-components-checkout-step__title,
.wc-block-cart__totals-title,
.wc-block-components-title.wc-block-components-title { font-family: var(--tt-font); color: var(--tt-ink); font-weight: 500; }

.wc-block-components-product-name { color: var(--tt-ink) !important; text-decoration: none; font-weight: 500; }

.wc-block-cart-item__image img { aspect-ratio: 4 / 5; object-fit: cover; background: var(--tt-surface); }

.wc-block-components-notice-banner { border-radius: 0 !important; }

/* Every piece is unique, so the quantity stepper in the bag is noise. */
.wc-block-cart-item__quantity .wc-block-components-quantity-selector { display: none; }

/* WooCommerce's remove control is a bare bin icon that people miss: label it. */
.wc-block-cart-item__remove-link {
	display: inline-flex !important;
	align-items: center;
	gap: 0.3rem;
	color: var(--tt-accent) !important;
	font-size: 0.875rem !important;
	text-decoration: underline !important;
	text-underline-offset: 0.2em;
}

.wc-block-cart-item__remove-link svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.wc-block-cart-item__remove-link::after { content: "Remove"; }

/* Online sales off: no bag icon in the header (the theme also drops it from Astra's layout). */
.tt-shop-closed .ast-header-woo-cart,
.tt-shop-closed .ast-site-header-cart,
.tt-shop-closed [data-section="section-header-woo-cart"] { display: none !important; }

/* --- Order received and My account (classic templates) ------------------- */

.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1rem;
	padding: 1.25rem !important;
	margin: 1.5rem 0 2rem !important;
	background: var(--tt-paper);
	border: 1px solid var(--tt-line);
	list-style: none;
}

.woocommerce-order-overview li {
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.8125rem !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tt-muted);
}

.woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 1rem;
	text-transform: none;
	letter-spacing: 0;
	color: var(--tt-ink);
	font-weight: 500;
}

.woocommerce-thankyou-order-received { font-size: 1.25rem; color: var(--tt-ink); }

.woocommerce table.shop_table,
.woocommerce table.shop_table td,
.woocommerce table.shop_table th { border-color: var(--tt-line) !important; }

.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tt-line); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--tt-line); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 0.8rem 0; color: var(--tt-ink); text-decoration: none; }
.woocommerce-MyAccount-navigation li.is-active a { font-weight: 500; color: var(--tt-accent); }

.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register {
	border: 1px solid var(--tt-line) !important;
	border-radius: 0 !important;
	background: var(--tt-paper);
	padding: clamp(1.25rem, 3vw, 2rem) !important;
}

/* --- Text pages (policies): one left-aligned reading column -------------- */

.tt-text-page .entry-content { max-width: 44rem; }
.tt-text-page .entry-content > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
.tt-text-page .entry-content > h2 { font-size: 1.375rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.tt-text-page .entry-content > ul { padding-left: 1.25rem; }

/* --- Footer alignment ---------------------------------------------------- */

.site-primary-footer-wrap .site-footer-section,
.site-primary-footer-wrap .ast-builder-html-element,
.site-primary-footer-wrap .footer-widget-area {
	text-align: left !important;
	justify-content: flex-start !important;
	align-items: flex-start !important;
}

.site-primary-footer-wrap .footer-nav-wrap .menu,
.site-primary-footer-wrap .footer-nav-wrap .menu-item { justify-content: flex-start !important; text-align: left !important; }
.site-primary-footer-wrap .footer-bar-navigation { margin: 0 !important; }
.site-primary-footer-wrap .ast-builder-grid-row { align-items: start !important; gap: 2rem; }
.site-primary-footer-wrap .footer-nav-wrap .menu-item { align-items: flex-start !important; }
.woocommerce-order-overview::before,
.woocommerce-order-overview::after { display: none !important; }

/* --- Desktop home: sections line up with the 1280px site width ---------- */

@media (min-width: 922px) {
	.home .entry-content > .wp-block-group,
	.home .entry-content > .wp-block-cover {
		padding-left: max(calc(3em + 20px), calc((100% - 1280px) / 2)) !important;
		padding-right: max(calc(3em + 20px), calc((100% - 1280px) / 2)) !important;
	}
}

/* --- Mobile and tablet: one consistent side margin ---------------------- */

.site-primary-footer-wrap .footer-nav-wrap .ast-nav-menu { justify-content: start !important; justify-items: start !important; }

@media (max-width: 921px) {
	:root { --tt-gutter: 24px; }

	.ast-container,
	#ast-mobile-header .site-primary-header-wrap,
	.site-primary-footer-wrap,
	.site-below-footer-wrap {
		padding-left: var(--tt-gutter) !important;
		padding-right: var(--tt-gutter) !important;
	}

	/* Home uses Astra's full-width layout, which pads each top-level section itself. */
	.home .site-content .ast-container { padding-left: 0 !important; padding-right: 0 !important; }
	.home .entry-content > .wp-block-group,
	.home .entry-content > .wp-block-cover {
		padding-left: var(--tt-gutter) !important;
		padding-right: var(--tt-gutter) !important;
	}

	.site-primary-footer-wrap .ast-builder-grid-row { gap: 2.25rem; }
	.site-footer .ast-builder-html-element p:not(.tt-footer-brand):not(.tt-footer-head) { max-width: none; }
	.site-below-footer-wrap .ast-footer-copyright p { text-align: left; }
	.site-below-footer-wrap .site-footer-section { justify-content: flex-start !important; }
}
