/*
Theme Name: Tailored Commerce Framework
Theme URI: https://taylorsthings.com/tcf
Author: Tailored Commerce Framework
Description: Brand-neutral, performance-focused WordPress block-theme foundation for omnichannel commerce. Use with a TCF child theme and optional TCF Merchant Hub plugin.
Version: 4.0.0-beta.6
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: block-theme, full-site-editing, e-commerce, custom-colors, wide-blocks, accessibility-ready
Text Domain: tailored-commerce-framework
*/

/* ==========================================================================
   Tailored Commerce Framework — core and legacy-compatibility styles

   theme.json owns colours, fonts, spacing and button defaults.
   This file owns the pieces theme.json cannot express: card treatments,
   badges, the hero carousel, the department tiles and the social grids.

   Every class here is prefixed `tt-` and is applied through a block's
   "Additional CSS class(es)" field, so nothing here fights core styles.
   ========================================================================== */

:root {
	--tt-radius: 14px;
	--tt-radius-sm: 10px;
	--tt-radius-pill: 999px;
	--tt-ring: 0 0 0 3px rgba(74, 222, 85, 0.55);
	--tt-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   Colour schemes

   theme.json emits its palette as --wp--preset--color--* variables on :root,
   and every block references the variable rather than a literal hex. So the
   whole site can be re-skinned by redefining those variables further down the
   cascade — no extra classes on any block, and existing content keeps working.

   :is(html[data-tcf-scheme], html[data-tt-scheme]) is (0,1,1) specificity versus :root at (0,1,0),
   so these win regardless of stylesheet order.
   ========================================================================== */

:is(html[data-tcf-scheme="dark"], html[data-tt-scheme="dark"]) {
	color-scheme: dark;

	--tt-bg: #0B1A2F;
	--tt-surface: #132840;
	--tt-inset: #0B1A2F;
	--tt-raised: #1B354F;
	--tt-border: #26405C;
	--tt-text: #FFFFFF;
	--tt-text-muted: #93A5BC;
	--tt-link: #4ADE55;
	--tt-danger-text: #FF8A8E;
	--tt-warning-text: #FFD166;
	--tt-success-text: #69E06F;
	--tt-brand-red-text: #FF8A8E;
	--tt-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.28);
	--tt-shadow-lift: 0 14px 34px -10px rgba(0, 0, 0, 0.55);
}

:is(html[data-tcf-scheme="light"], html[data-tt-scheme="light"]) {
	color-scheme: light;

	--tt-bg: #FAF6EC;
	--tt-surface: #FFFCF5;
	--tt-inset: #F2EADA;
	--tt-raised: #F3ECDE;
	--tt-border: #E5DBC7;
	--tt-text: #211C14;
	--tt-text-muted: #6A6152;
	--tt-link: #1A7D15;
	--tt-danger-text: #A61E23;
	--tt-warning-text: #7A5200;
	--tt-success-text: #1A7D15;
	--tt-brand-red-text: #A61E23;
	--tt-shadow-card: 0 2px 10px rgba(74, 58, 28, 0.10);
	--tt-shadow-lift: 0 14px 34px -12px rgba(74, 58, 28, 0.26);
}

/* Repoint the theme.json palette at the semantic layer. */
:is(html[data-tcf-scheme], html[data-tt-scheme]) {
	--wp--preset--color--page-navy: var(--tt-bg);
	--wp--preset--color--surface-navy: var(--tt-surface);
	--wp--preset--color--surface-raised: var(--tt-raised);
	--wp--preset--color--hairline: var(--tt-border);
	--wp--preset--color--text-muted: var(--tt-text-muted);
	--wp--preset--shadow--card: var(--tt-shadow-card);
	--wp--preset--shadow--elevated: var(--tt-shadow-lift);
}

/* Body text is set to the `white` slug in theme.json, which must NOT flip —
   hero headings rely on it staying literally white over dark imagery. */
:is(html[data-tcf-scheme="light"], html[data-tt-scheme="light"]) body {
	color: var(--tt-text);
}

/* Cover overlays stay dark in both schemes. Photography needs the contrast,
   and the white text sitting on top of it does too. */
.wp-block-cover .wp-block-cover__background.has-page-navy-background-color {
	background-color: #0B1A2F;
}

/* Bright green is a dark-background link colour; on paper-white it fails
   contrast, so body links darken. Buttons are excluded by :not() — they
   carry their own colour from theme.json. */
:is(html[data-tcf-scheme="light"], html[data-tt-scheme="light"]) a:not(.wp-element-button) {
	color: var(--tt-link);
}

/* Ordered after the rule above so links over imagery keep the bright green. */
:is(html[data-tcf-scheme="light"], html[data-tt-scheme="light"]) .wp-block-cover__inner-container a:not(.wp-element-button) {
	color: var(--wp--preset--color--green-bright);
}

:is(html[data-tcf-scheme="light"], html[data-tt-scheme="light"]) .tt-nav .wp-block-navigation-item__content:hover,
:is(html[data-tcf-scheme="light"], html[data-tt-scheme="light"]) .tt-nav .current-menu-item > .wp-block-navigation-item__content,
:is(html[data-tcf-scheme="light"], html[data-tt-scheme="light"]) .tt-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--green-deep);
}

/* The promo pill reads as a green wash on dark; on light it needs a border
   to hold its shape. */
:is(html[data-tcf-scheme="light"], html[data-tt-scheme="light"]) .tt-trust-pill {
	background: rgba(55, 181, 48, 0.1);
	border-color: rgba(46, 155, 40, 0.4);
	color: var(--tt-link);
}

/* #FFEC3C is legible on navy and almost invisible on cream. */
:is(html[data-tcf-scheme="light"], html[data-tt-scheme="light"]) .tt-review__stars {
	color: #9A5F03;
}

:is(html[data-tcf-scheme="dark"], html[data-tt-scheme="dark"]) .has-primary-red-color {
	color: var(--tt-brand-red-text) !important;
}

/* --------------------------------------------------------------------------
   Optional: accessible CTA buttons

   White text on the brand green (#37B530) measures 2.69:1. That is below the
   WCAG AA threshold of 4.5:1 for normal-size text, in both schemes. It is
   left as-is because it is a brand colour and yours to decide on — but if you
   want buttons to pass, uncomment ONE of these.

   A) Darken the button green. Closest to the current look.
      Measures 4.71:1 with white text.

	.wp-element-button,
	.wp-block-button__link,
	.tt-cart .wc-block-mini-cart__button {
		background-color: #278520;
	}

   B) Keep the bright green, darken the label. Measures 6.24:1.

	.wp-element-button,
	.wp-block-button__link,
	.tt-cart .wc-block-mini-cart__button {
		color: #06230A;
	}
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Accessibility floor
   -------------------------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--green-bright);
	outline-offset: 2px;
	border-radius: 4px;
}

.tt-skip-link:focus {
	position: fixed;
	inset-block-start: 1rem;
	inset-inline-start: 1rem;
	z-index: 9999;
	padding: 0.75rem 1.25rem;
	background: var(--wp--preset--color--primary-green);
	color: var(--wp--preset--color--white);
	border-radius: var(--tt-radius-sm);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* --------------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------------- */

.tt-announcement {
	position: relative;
}

.tt-announcement[hidden] {
	display: none;
}

.tt-announcement__close {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 1rem;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: var(--tt-radius-pill);
	background: transparent;
	color: currentColor;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s var(--tt-ease);
}

.tt-announcement__close:hover {
	background: rgba(0, 0, 0, 0.22);
}

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */

.tt-header {
	border-block-end: 1px solid var(--wp--preset--color--hairline);
}

.tt-brand .wp-block-site-title a {
	color: var(--tt-text);
	text-decoration: none;
}

.tt-brand .wp-block-site-title a:hover {
	text-decoration: none;
}

.tt-brand__tagline {
	margin-block-start: 0.15rem;
	color: var(--tt-brand-red-text, var(--wp--preset--color--primary-red));
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tt-searchbar .wp-block-search__input {
	background: var(--tt-inset);
	border: 1px solid var(--tt-border);
	color: var(--tt-text);
	padding: 0.85rem 1.1rem;
}

.tt-searchbar .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--text-muted);
	opacity: 1;
}

.tt-searchbar .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--text-muted);
	border: 0;
	padding-inline: 0.9rem;
}

.tt-searchbar .wp-block-search__button:hover {
	color: var(--wp--preset--color--green-bright);
}

.tt-nav .wp-block-navigation-item__content {
	font-weight: 700;
	padding-block: 0.35rem;
	border-block-end: 2px solid transparent;
	transition: color 0.18s var(--tt-ease), border-color 0.18s var(--tt-ease);
}

.tt-nav .wp-block-navigation-item__content:hover,
.tt-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--green-bright);
	border-block-end-color: var(--wp--preset--color--primary-green);
	text-decoration: none;
}

.tt-utility-bar {
	color: var(--wp--preset--color--text-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

/* Mini cart pill — matches the green Cart button in the design */
.tt-cart .wc-block-mini-cart__button {
	background: var(--wp--preset--color--primary-green);
	color: var(--wp--preset--color--white);
	border-radius: var(--tt-radius-pill);
	padding: 0.7rem 1.35rem;
	font-weight: 800;
	transition: background-color 0.18s var(--tt-ease), transform 0.18s var(--tt-ease);
}

.tt-cart .wc-block-mini-cart__button:hover {
	background: var(--wp--preset--color--green-deep);
	transform: translateY(-1px);
}

.tt-cart .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

/* --------------------------------------------------------------------------
   Section furniture — eyebrow labels and headings
   -------------------------------------------------------------------------- */

.tt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-block-end: 0.5rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.tt-section {
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.tt-section__lede {
	max-width: 44ch;
	color: var(--wp--preset--color--text-muted);
}

/* --------------------------------------------------------------------------
   Hero carousel
   Without JS the slides simply stack — the content is never hidden.
   -------------------------------------------------------------------------- */

.tt-carousel {
	position: relative;
}

.tt-carousel.is-enhanced .tt-slide {
	display: none;
}

.tt-carousel.is-enhanced .tt-slide.is-active {
	display: flex;
	animation: tt-fade 0.5s var(--tt-ease);
}

@keyframes tt-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.tt-carousel__dots {
	position: absolute;
	inset-block-end: 1.75rem;
	inset-inline-start: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 5;
}

.tt-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: var(--tt-radius-pill);
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: width 0.25s var(--tt-ease), background-color 0.25s var(--tt-ease);
}

.tt-carousel__dot[aria-current="true"] {
	width: 34px;
	background: var(--wp--preset--color--primary-green);
}

.tt-badge-staff {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border-radius: 6px;
	background: var(--wp--preset--color--primary-red);
	color: var(--wp--preset--color--white);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */

.tt-trust {
	border-block: 1px solid var(--wp--preset--color--hairline);
}

.tt-trust .wp-block-column {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.tt-trust__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--tt-radius-sm);
	background: var(--wp--preset--color--surface-raised);
	font-size: 1.25rem;
}

.tt-trust__title {
	margin: 0;
	font-weight: 800;
}

.tt-trust__note {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Department tiles
   -------------------------------------------------------------------------- */

/* The tiles are core Cover blocks, so they stay fully editable in the
   Site Editor. Grid + polish is applied from here. */

.tt-departments {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1.25rem;
}

.tt-departments > .wp-block-cover {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--tt-radius);
	transition: transform 0.22s var(--tt-ease), border-color 0.22s var(--tt-ease), box-shadow 0.22s var(--tt-ease);
}

.tt-departments > .wp-block-cover:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--primary-green);
	box-shadow: var(--wp--preset--shadow--elevated);
}

.tt-departments .wp-block-cover__image-background {
	transition: transform 0.4s var(--tt-ease);
}

.tt-departments > .wp-block-cover:hover .wp-block-cover__image-background {
	transform: scale(1.06);
}

.tt-departments h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
}

.tt-dept__count {
	display: inline-block;
	margin: 0;
	padding: 0.3rem 0.7rem;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.72);
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 700;
}

.tt-dept__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.35rem 0 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.tt-departments > .wp-block-cover:hover .tt-dept__link {
	color: var(--wp--preset--color--green-bright);
}

/* --------------------------------------------------------------------------
   Product cards (WooCommerce Product Collection lives inside .tt-products)
   -------------------------------------------------------------------------- */

.tt-products .wc-block-product-template__responsive-wrapper,
.tt-products .wp-block-post-template {
	gap: 1.5rem;
}

.tt-products .wc-block-product,
.tt-products .wp-block-post {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--tt-radius);
	background: var(--wp--preset--color--surface-navy);
	transition: transform 0.22s var(--tt-ease), border-color 0.22s var(--tt-ease), box-shadow 0.22s var(--tt-ease);
}

.tt-products .wc-block-product:hover,
.tt-products .wp-block-post:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--primary-green);
	box-shadow: var(--wp--preset--shadow--elevated);
}

.tt-products .wc-block-components-product-image img,
.tt-products .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.tt-products .wc-block-components-product-title,
.tt-products .wp-block-post-title {
	padding-inline: 1rem;
	font-weight: 700;
}

.tt-products .wc-block-components-product-price {
	padding-inline: 1rem;
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--wp--preset--color--green-bright);
}

.tt-products .wc-block-components-product-price del {
	color: var(--wp--preset--color--text-muted);
	font-weight: 500;
	font-size: 0.9rem;
	margin-inline-end: 0.4rem;
}

.tt-products .wp-block-button,
.tt-products .wc-block-components-product-button {
	padding: 0 1rem 1.1rem;
}

.tt-products .wc-block-components-product-button .wp-block-button__link {
	width: 100%;
	justify-content: center;
}

/* Sale flash — WooCommerce renders this automatically on discounted products */
.tt-products .wc-block-components-product-sale-badge {
	position: absolute;
	inset-block-start: 0.85rem;
	inset-inline-start: 0.85rem;
	z-index: 2;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	background: var(--wp--preset--color--primary-red);
	border: 0;
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tt-tag-bestseller,
.tt-tag-staff {
	display: inline-block;
	padding: 0.28rem 0.65rem;
	border-radius: 5px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tt-tag-bestseller {
	background: var(--wp--preset--color--accent-yellow);
	color: var(--wp--preset--color--black);
}

.tt-tag-staff {
	background: var(--wp--preset--color--primary-green);
	color: var(--wp--preset--color--white);
}

/* --------------------------------------------------------------------------
   Social grids — TikTok feed and Instagram lookbook
   -------------------------------------------------------------------------- */

.tt-social-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1.25rem;
}

.tt-social-grid > .wp-block-cover {
	overflow: hidden;
	border-radius: var(--tt-radius);
}

.tt-social-grid .wp-block-cover__image-background {
	transition: transform 0.4s var(--tt-ease);
}

.tt-social-grid > .wp-block-cover:hover .wp-block-cover__image-background {
	transform: scale(1.05);
}

.tt-social-card__handle,
.tt-social-card__views {
	margin: 0;
	padding: 0.3rem 0.65rem;
	border-radius: var(--tt-radius-pill);
	background: rgba(0, 0, 0, 0.68);
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 700;
	backdrop-filter: blur(4px);
}

.tt-social-card__play {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	margin: auto;
	border-radius: var(--tt-radius-pill);
	border: 2px solid rgba(255, 255, 255, 0.85);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 1.3rem;
	transition: transform 0.22s var(--tt-ease), background-color 0.22s var(--tt-ease);
}

.tt-social-grid > .wp-block-cover:hover .tt-social-card__play {
	transform: scale(1.08);
	background: rgba(55, 181, 48, 0.85);
}

.tt-handle-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 1rem;
	border-radius: var(--tt-radius-pill);
	background: linear-gradient(90deg, #833AB4 0%, #C13584 50%, #E1306C 100%);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.tt-review-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.tt-review {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.75rem;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--tt-radius);
	background: var(--wp--preset--color--surface-navy);
}

.tt-review__stars {
	color: var(--wp--preset--color--accent-yellow);
	font-size: 1.05rem;
	letter-spacing: 0.12em;
}

.tt-review__body {
	margin: 0;
	font-style: italic;
	line-height: 1.7;
}

.tt-review__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-block-start: auto;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--wp--preset--color--hairline);
}

.tt-review__name {
	margin: 0;
	font-weight: 800;
}

.tt-review__role {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.8rem;
}

.tt-review__helpful {
	padding: 0.35rem 0.8rem;
	border-radius: var(--tt-radius-pill);
	background: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--text-muted);
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
}

.tt-trust-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 1.1rem;
	border-radius: var(--tt-radius-pill);
	border: 1px solid rgba(55, 181, 48, 0.45);
	background: rgba(55, 181, 48, 0.12);
	color: var(--wp--preset--color--green-bright);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Editorial cards (Taylor's Journal)
   -------------------------------------------------------------------------- */

.tt-journal .wp-block-post {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--tt-radius);
	background: var(--wp--preset--color--surface-navy);
	transition: transform 0.22s var(--tt-ease), border-color 0.22s var(--tt-ease);
}

.tt-journal .wp-block-post:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--primary-green);
}

.tt-journal .wp-block-post-featured-image {
	margin: 0;
}

.tt-journal .wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.tt-journal .wp-block-post-title,
.tt-journal .wp-block-post-excerpt,
.tt-journal .wp-block-post-date,
.tt-journal .wp-block-post-terms,
.tt-journal .wp-block-post-author-name {
	padding-inline: 1.25rem;
}

.tt-journal .wp-block-post-terms {
	display: inline-block;
	margin-block-start: 1rem;
}

.tt-journal .wp-block-post-terms a {
	display: inline-block;
	padding: 0.28rem 0.7rem;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.6);
	color: var(--wp--preset--color--white);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

.tt-journal .wp-block-post-excerpt {
	color: var(--wp--preset--color--text-muted);
	padding-block-end: 1.25rem;
}

.tt-meta-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 1.25rem 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Newsletter band
   -------------------------------------------------------------------------- */

.tt-newsletter {
	background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1px);
	background-size: 14px 14px;
}

.tt-newsletter .tt-eyebrow {
	padding: 0.45rem 1.1rem;
	border-radius: var(--tt-radius-pill);
	background: var(--wp--preset--color--accent-yellow);
	color: var(--wp--preset--color--black);
}

.tt-newsletter h2,
.tt-newsletter p {
	color: var(--wp--preset--color--white);
}

.tt-newsletter .mailpoet_form,
.tt-newsletter form {
	max-width: 620px;
	margin-inline: auto;
}

.tt-newsletter input[type="email"],
.tt-newsletter input[type="text"] {
	width: 100%;
	padding: 1rem 1.2rem;
	border: 0;
	border-radius: var(--tt-radius-sm);
	background: #fff;
	color: #111;
	font-size: 1rem;
}

.tt-newsletter input[type="submit"],
.tt-newsletter button[type="submit"] {
	padding: 1rem 1.75rem;
	border: 0;
	border-radius: var(--tt-radius-sm);
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.18s var(--tt-ease);
}

.tt-newsletter input[type="submit"]:hover,
.tt-newsletter button[type="submit"]:hover {
	transform: translateY(-1px);
}

.tt-newsletter__note {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.82rem;
}

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

.tt-footer {
	border-block-start: 1px solid var(--wp--preset--color--hairline);
}

.tt-footer h4 {
	margin-block-end: 1rem;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tt-footer .wp-block-navigation {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
}

.tt-footer .wp-block-navigation-item__content {
	color: var(--wp--preset--color--text-muted);
	font-weight: 500;
}

.tt-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--green-bright);
}

.tt-contact-line {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-block: 0.55rem;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.9rem;
}

.tt-paycard {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	margin-inline-end: 0.4rem;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: 5px;
	background: var(--wp--preset--color--surface-raised);
	color: var(--wp--preset--color--text-muted);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.tt-to-top {
	position: fixed;
	inset-block-end: 1.5rem;
	inset-inline-end: 1.5rem;
	z-index: 50;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--tt-radius-pill);
	background: var(--tt-raised);
	color: var(--tt-text);
	font-size: 1.2rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.25s var(--tt-ease), transform 0.25s var(--tt-ease), visibility 0.25s;
}

.tt-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tt-to-top:hover {
	background: var(--wp--preset--color--primary-green);
	border-color: var(--wp--preset--color--primary-green);
}

/* --------------------------------------------------------------------------
   WooCommerce surfaces outside the block templates
   -------------------------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: var(--tt-radius-sm);
	border-block-start-color: var(--wp--preset--color--primary-green);
	background: var(--tt-surface);
	color: var(--tt-text);
}

.tt-quick-view {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.5rem;
}

.tt-quick-view__media,
.tt-quick-view__body {
	flex: 1 1 260px;
}

.tt-quick-view__media img {
	width: 100%;
	border-radius: var(--tt-radius-sm);
	object-fit: cover;
}

.tt-quick-view__title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	font-weight: 800;
}

.tt-quick-view__price {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--wp--preset--color--green-bright);
}

.tt-quick-view__excerpt {
	margin-block-start: 1rem;
	color: var(--wp--preset--color--text-muted);
}

.tt-breadcrumbs {
	margin-block-end: 1rem;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.8rem;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
	.tt-carousel__dots {
		inset-block-end: 1rem;
	}

	.tt-review__foot {
		flex-direction: column;
		align-items: flex-start;
	}

	.tt-to-top {
		inset-block-end: 1rem;
		inset-inline-end: 1rem;
	}
}

/* Alpha 3: neutral validation-safe header/footer bridge for direct parent activation. */
.tcf-core-header,
.tcf-core-footer {
	background: var(--tt-surface);
	color: var(--tt-text);
	border-color: var(--tt-border);
}
.tcf-core-header { border-bottom: 1px solid var(--tt-border); }
.tcf-core-footer { border-top: 1px solid var(--tt-border); }
.tcf-core-shell {
	max-width: 1440px;
	margin-inline: auto;
	padding: 1rem clamp(1rem, 3vw, 3rem);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.tcf-core-brand { color: var(--tt-text); font-weight: 800; text-decoration: none; }
.tcf-core-nav a { color: var(--tt-link); font-weight: 700; text-decoration: none; }
.tcf-core-footer .tcf-core-shell { align-items: flex-start; flex-wrap: wrap; color: var(--tt-text-muted); font-size: .85rem; }

/* --------------------------------------------------------------------------
   Alpha 5 canonical media primitives
   Core Group + Image blocks replace fragile hand-serialized Cover blocks.
   -------------------------------------------------------------------------- */
.tt-media-slide,
.tt-media-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.tt-media-slide {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 4vw, 4rem);
    background: var(--wp--preset--color--page-navy);
}
.tt-media-slide::after,
.tt-media-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(6, 25, 39, 0.60);
    pointer-events: none;
}
.tt-media-slide__image,
.tt-media-card__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    margin: 0 !important;
    width: 100%;
    height: 100%;
}
.tt-media-slide__image img,
.tt-media-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tt-media-slide__content {
    position: relative;
    z-index: 1;
    width: min(100%, 1180px);
    margin-inline: auto;
}
.tt-media-slide__content > * { max-width: 850px; }
.tt-departments > .tt-dept-card {
    min-height: 270px;
    border: 1px solid var(--wp--preset--color--hairline);
    border-radius: var(--tt-radius);
    transition: transform 0.22s var(--tt-ease), border-color 0.22s var(--tt-ease), box-shadow 0.22s var(--tt-ease);
}
.tt-departments > .tt-dept-card:hover {
    transform: translateY(-4px);
    border-color: var(--wp--preset--color--primary-green);
    box-shadow: var(--wp--preset--shadow--elevated);
}
.tt-dept-card .tt-media-card__image img { transition: transform 0.4s var(--tt-ease); }
.tt-dept-card:hover .tt-media-card__image img { transform: scale(1.06); }
.tt-media-card__content {
    position: absolute;
    inset-inline: 1.1rem;
    inset-block-end: 1.1rem;
    z-index: 1;
}
.tt-media-card__content h3 { margin: 0; }
.tt-social-grid > .tt-social-card { min-height: 380px; border-radius: var(--tt-radius); }
.tt-social-grid > .tt-social-card::after { background: rgba(6, 25, 39, 0.28); }


/* --------------------------------------------------------------------------
   Alpha 12 — normalized data components
   -------------------------------------------------------------------------- */
.tcf-data-component {
    box-sizing: border-box;
}
.tcf-data-component__heading {
    margin-block-start: 0;
    margin-block-end: 1.4rem;
}
.tcf-data-empty-state {
    padding: 1.25rem;
    border: 1px dashed var(--wp--preset--color--hairline, #d0d0d0);
    border-radius: var(--tt-radius, 14px);
    background: var(--wp--preset--color--surface-raised, #f5f5f5);
    color: var(--tt-text, inherit);
}
.tcf-data-empty-state p { margin-block-end: 0; }
.tcf-review-card__link {
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}
.tcf-media-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.tcf-media-feed__card {
    position: relative;
    display: block;
    min-height: 320px;
    overflow: hidden;
    border: 1px solid var(--wp--preset--color--hairline);
    border-radius: var(--tt-radius);
    background: var(--wp--preset--color--surface-raised);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}
.tcf-media-feed__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(6,25,39,.04) 25%, rgba(6,25,39,.82) 100%);
    pointer-events: none;
}
.tcf-media-feed__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s var(--tt-ease);
}
.tcf-media-feed__card:hover .tcf-media-feed__image { transform: scale(1.04); }
.tcf-media-feed__overlay {
    position: absolute;
    inset-inline: 1rem;
    inset-block-end: 1rem;
    z-index: 2;
}
.tcf-media-feed__platform {
    display: inline-flex;
    margin-block-end: .55rem;
    padding: .3rem .65rem;
    border-radius: var(--tt-radius-pill);
    background: rgba(0,0,0,.68);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.tcf-media-feed__overlay h3 { margin: 0 0 .35rem; color: #fff; }
.tcf-media-feed__caption p { margin: 0; color: rgba(255,255,255,.9); }
@media (max-width: 600px) {
    .tcf-media-feed { grid-template-columns: 1fr; }
    .tcf-media-feed__card { min-height: 280px; }
}


/* --------------------------------------------------------------------------
   Alpha 12.2 — provenance-aware data cards
   -------------------------------------------------------------------------- */
.tcf-review-card__source {
    margin: .25rem 0 0;
    color: var(--tt-text-muted);
    font-size: .78rem;
}
.tcf-review-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    justify-content: flex-end;
}
.tcf-media-feed__source,
.tcf-media-feed__product-link {
    display: inline-flex;
    margin-inline-start: .4rem;
    color: rgba(255,255,255,.92);
    font-size: .72rem;
    font-weight: 700;
}
.tcf-media-feed__meta,.tcf-media-feed__actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.tcf-media-feed__actions{margin-top:.7rem}.tcf-media-feed__actions a{display:inline-flex;padding:.42rem .7rem;border-radius:999px;background:rgba(0,0,0,.68);color:#fff!important;font-size:.75rem;font-weight:800;text-decoration:none}.tcf-media-feed__actions a:hover,.tcf-media-feed__actions a:focus-visible{background:rgba(0,0,0,.88);text-decoration:underline}.tcf-media-feed__source{margin-inline-start:0}

/* Alpha 16 — normalized channel metadata presentation. */
.tcf-review-card__date {
	margin:.18rem 0 0;
	font-size:.78rem;
	opacity:.72;
}
.tcf-media-feed__type,
.tcf-media-feed__creator {
	display:inline-flex;
	align-items:center;
	padding:.25rem .48rem;
	border-radius:999px;
	background:rgba(0,0,0,.56);
	color:#fff;
	font-size:.72rem;
	font-weight:700;
}
