/* Kill the cream band between homepage Contacto and the footer.
   Hostinger theme adds --wp--style--block-gap on .wp-site-blocks and
   margin-block-end on the last post-content child. Do not put this in
   teixidets-brand.css (editor edits on that file stall Cursor). */
.home .wp-site-blocks {
	gap: 0 !important;
	row-gap: 0 !important;
}

.home .wp-block-post-content > :last-child,
.home .entry-content > :last-child {
	margin-block-end: 0 !important;
}

.home footer.site-footer {
	margin-block-start: 0 !important;
}

/* Restore Contacto inner padding (brand CSS had padding-bottom: 0 !important). */
.txd-atelier {
	padding-bottom: 4.5rem !important;
}

@media (max-width: 781px) {
	.txd-atelier {
		padding-bottom: 2.75rem !important;
	}
}

/* Comprar → #tienda must sit below the sticky header, not under it. */
#tienda {
	scroll-margin-top: calc(6.5rem + var(--wp-admin--admin-bar--height, 0px));
}

/* Copy-only hero. No film. Gold letters → burgundy (client 2026-09-22). */
.home .txd-hero {
	padding-top: 4.5rem !important;
	padding-bottom: 3.25rem !important;
}

/* Same wine as the header wordmark (logo-teixidets-interim.png), not garnet-deep. */
.txd-eyebrow,
.txd-display em {
	color: #801010 !important;
}

/* Hero film — muted loop in the smaller portrait frame. No product chrome. */
.txd-hero-card--film {
	position: relative;
	display: block;
	margin: 0;
	overflow: hidden;
	pointer-events: auto;
}

.txd-hero-film {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center;
	background: var(--txd-linen);
}

.txd-hero-card--film::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(197, 155, 39, 0.2);
	background: linear-gradient(
		180deg,
		rgba(250, 248, 245, 0.08),
		transparent 18%,
		transparent 82%,
		rgba(30, 26, 29, 0.1)
	);
}

.txd-display em {
	display: block;
}

@media (min-width: 900px) {
	.txd-hero__grid {
		grid-template-columns: minmax(0, 1fr) !important;
		column-gap: 0;
		align-items: start !important;
	}

	.home .txd-display,
	.home .txd-display em {
		white-space: nowrap;
	}

	.home .txd-lead {
		max-width: 38rem;
	}

	.txd-hero__visual,
	.txd-hero-card--film,
	.txd-hero-film {
		display: none !important;
	}
}

/* Galería / Contacto: same flush as home; hide the FSE page title. */
.txd-inner-page .wp-site-blocks {
	gap: 0 !important;
	row-gap: 0 !important;
}

.txd-inner-page .wp-block-post-content > :last-child,
.txd-inner-page .entry-content > :last-child {
	margin-block-end: 0 !important;
}

.txd-inner-page footer.site-footer {
	margin-block-start: 0 !important;
}

.txd-inner-page .wp-block-post-title,
.txd-inner-page h1.wp-block-post-title {
	display: none !important;
}

.txd-catalog {
	padding: 3.25rem 0 5rem;
}

.txd-catalog .txd-section-head {
	margin-bottom: 2.75rem;
	gap: 0;
}

.txd-catalog .txd-section-head h2 {
	margin: 0;
	font-size: clamp(2rem, 3.4vw, 2.85rem);
	font-weight: 500;
	letter-spacing: 0.02em;
}

.txd-catalog .txd-section-head h2::after {
	content: "";
	display: block;
	width: 2.4rem;
	height: 1px;
	margin: 1rem auto 0;
	background: rgba(197, 155, 39, 0.7);
}

.txd-catalog .txd-filters {
	gap: 1.75rem 2.1rem;
	margin-top: 1.35rem;
}

.txd-catalog .txd-filters button {
	padding: 0.15rem 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #8a7a7c;
	font-weight: 600;
	letter-spacing: 0.16em;
}

.txd-catalog .txd-filters button.is-active {
	background: transparent;
	color: var(--txd-garnet-deep);
	box-shadow: inset 0 -1px 0 var(--txd-gold);
}

.txd-catalog .txd-catalog__grid {
	gap: 2.25rem 1.75rem;
}

.txd-catalog .txd-product {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.txd-catalog .txd-product__body {
	padding: 1.1rem 0 0;
}

.txd-catalog .txd-product__body h3 {
	margin: 0 0 0.4rem;
	font-size: 1.25rem;
	font-weight: 500;
}

.txd-catalog .txd-price,
.txd-catalog .txd-price .woocommerce-Price-amount {
	font-size: 1.15rem;
}

.txd-catalog .txd-product {
	position: relative;
	container-type: inline-size;
}

.txd-catalog .txd-product__cart {
	position: absolute;
	left: 0.85rem;
	right: 0.85rem;
	top: calc(100cqw * 4 / 3 - 3.35rem);
	z-index: 3;
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0 0.9rem;
	border-radius: 4px;
	background: var(--txd-garnet);
	color: #fff !important;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
}

.txd-catalog .txd-product__cart:hover {
	background: var(--txd-garnet-deep);
	color: #fff !important;
}

@media (hover: hover) and (pointer: fine) {
	.txd-catalog .txd-product__cart {
		display: flex;
		opacity: 0;
		pointer-events: none;
		transform: translateY(0.25rem);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}

	.txd-catalog .txd-product:hover .txd-product__cart,
	.txd-catalog .txd-product:focus-within .txd-product__cart {
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}
}

.txd-catalog a.added_to_cart {
	display: none !important;
}
