/* ==========================================================================
   THE BOMBAY GALLERY — design tokens & components
   Typography: Space Grotesk (headings) / DM Sans (body)
   Palette: forest green / midnight ink / cream paper, with gold & clay accents
   Signature: thin 1px ink grid-lines separating every block
   ========================================================================== */

:root {
	/* Brand palette (TBG Color Palette): primary green / midnight / brown /
	   cream, secondary gold / clay. */
	--color-green: #043b2c;
	--color-midnight: #0f1722;
	--color-brown: #432614;
	--color-cream: #ece5d6;
	--color-gold: #b08d57;
	--color-clay: #8c5b45;

	--color-ink: var(--color-midnight);
	--color-paper: var(--color-cream);
	--color-sand: #e2d7c2; /* cream deepened with a little gold */
	--color-accent: var(--color-clay);
	--color-charcoal: var(--color-midnight);
	--color-meta: #7e6958; /* brown softened toward cream */
	--color-border: var(--color-midnight);

	--font-heading: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

	--header-height: 66px;
	--announcement-height: 2.3rem;
	--marquee-height: 3.25rem;
	--space-half: 1rem;
	--space: 2rem;
	--space-2x: 4rem;
	--gutter: clamp(1rem, 4vw, 3rem);
	--container-max: 1680px;
	--screen: calc(100svh - var(--header-height));
	--hero-height: calc(100svh - var(--header-height) - var(--announcement-height) - var(--marquee-height));

	--ease: cubic-bezier(.4,0,.2,1);
}

[data-color-scheme="header"],
[data-color-scheme="primary"] {
	--scheme-bg: var(--color-paper);
	--scheme-text: var(--color-ink);
	--scheme-accent: var(--color-accent);
}
[data-color-scheme="footer"],
[data-color-scheme="tertiary"] {
	--scheme-bg: var(--color-green);
	--scheme-text: var(--color-paper);
	--scheme-accent: var(--color-gold);
}

/* ---------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
input, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, .tbg-heading {
	font-family: var(--font-heading);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.section-x-padding { padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
.tbg-skip-link:not(:focus) { position: absolute; left: -9999px; }

/* ---------------------------------- Buttons ------------------------------ */
.tbg-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1.9rem;
	border: 1px solid var(--color-ink);
	color: var(--color-ink);
	background: transparent;
	font-family: var(--font-heading);
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tbg-btn:hover { background: var(--color-ink); color: var(--color-paper); }
.tbg-btn--invert { border-color: var(--color-paper); color: var(--color-paper); }
.tbg-btn--invert:hover { background: var(--color-paper); color: var(--color-ink); }

.tbg-view-all {
	font-family: var(--font-heading);
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	white-space: nowrap;
}
.tbg-view-all svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.tbg-view-all:hover svg { transform: translateX(3px); }

/* ---------------------------------- Announcement -------------------------- */
.tbg-announcement { background: var(--color-green); color: var(--color-paper); }
.tbg-announcement__inner { padding-top: .55rem; padding-bottom: .55rem; text-align: center; }
.tbg-announcement p { font-size: .8rem; letter-spacing: .02em; }

/* ---------------------------------- Header -------------------------------- */
.tbg-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--color-paper);
	border-bottom: 1px solid var(--color-border);
}
.tbg-header__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space);
	height: var(--header-height);
}
.tbg-header__left { display: flex; align-items: center; justify-self: start; gap: var(--space); min-width: 0; flex-shrink: 1; }
.tbg-header__burger { display: none; flex-shrink: 0; padding: .4rem; margin-left: -.4rem; }
.tbg-header__burger svg,
.tbg-mobile-menu__header button svg { width: 22px; height: 22px; }
.tbg-mobile-menu__header .tbg-logo__mark { height: 34px; color: var(--color-green); }
.tbg-logo { min-width: 0; overflow: hidden; color: var(--color-green); }
.tbg-logo a { display: block; }
.tbg-logo__mark { height: clamp(30px, 9vw, 42px); width: auto; }
.tbg-logo__text { font-family: var(--font-heading); font-size: clamp(0.95rem, 3.4vw, 1.35rem); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tbg-header__right { justify-self: end; flex-shrink: 0; }
.custom-logo { max-height: 40px; width: auto; }

.tbg-nav { justify-self: center; display: flex; justify-content: center; }
.tbg-nav__list { display: flex; align-items: stretch; gap: var(--space); text-transform: uppercase; }
.tbg-nav { align-self: stretch; }
.tbg-nav__item { display: flex; align-items: center; }
.tbg-nav__link { display: flex; align-items: center; gap: .3rem; padding: 1rem 0; font-size: .82rem; letter-spacing: .04em; border-bottom: 2px solid transparent; }
.tbg-nav__item:hover .tbg-nav__link,
.tbg-nav__link:focus-visible { border-color: currentColor; }
.tbg-nav__chevron { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.tbg-nav__item:hover .tbg-nav__chevron { transform: rotate(180deg); }

.tbg-mega {
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	background: var(--color-paper);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
	z-index: 30;
}
.tbg-nav__item--has-children:hover .tbg-mega,
.tbg-nav__item--has-children:focus-within .tbg-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.tbg-mega__inner { padding-top: var(--space); padding-bottom: var(--space); }
.tbg-mega__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-2x); }
.tbg-mega__col { min-width: 140px; }
.tbg-mega__col-title {
	display: block;
	font-family: var(--font-heading);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin-bottom: 1.1rem;
}
a.tbg-mega__col-title:hover { color: var(--color-accent); }
.tbg-mega__col--link { margin-bottom: .3rem; }
.tbg-mega__col--link .tbg-mega__col-title { margin-bottom: 0; }
.tbg-mega__col-list { display: flex; flex-direction: column; }
.tbg-mega__col-item { font-size: .88rem; }
.tbg-mega__link { display: inline-block; padding: .3rem 0; text-transform: none; }
.tbg-mega__link:hover { color: var(--color-accent); }
.tbg-mega__col-item--emphasis .tbg-mega__link {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* A menu with a single column doesn't have enough content to fill the
   full-width panel, so it drops down as a compact box under its own nav
   item instead. Menus with two or more columns keep the full-width panel. */
.tbg-nav__item:has(.tbg-mega__grid > .tbg-mega__col:only-child) { position: relative; }
.tbg-nav__item:has(.tbg-mega__grid > .tbg-mega__col:only-child) .tbg-mega {
	left: calc(-1.5rem - 1px);
	width: max-content;
	min-width: 15rem;
	border: 1px solid var(--color-border);
}
.tbg-mega__grid:has(> .tbg-mega__col:only-child) { display: block; }
.tbg-mega__inner:has(.tbg-mega__col:only-child) { padding: 1.5rem; }
.tbg-mega__col:only-child .tbg-mega__col-title { margin-bottom: .7rem; color: var(--color-meta); }
.tbg-mega__col:only-child .tbg-mega__link { display: block; padding: .45rem 0; font-size: .95rem; }

.tbg-header__right { display: flex; align-items: center; gap: var(--space-half); }
.tbg-header__icon { position: relative; display: inline-flex; padding: .4rem; }
.tbg-header__icon svg { width: 20px; height: 20px; }
.tbg-header__icon:hover { color: var(--color-accent); }
.tbg-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 15px;
	height: 15px;
	padding: 0 3px;
	border-radius: 50%;
	background: var(--color-accent);
	color: var(--color-paper);
	font-size: .6rem;
	line-height: 15px;
	text-align: center;
}

/* Search overlay */
.tbg-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(236,229,214,.98);
	display: flex;
	align-items: center;
	justify-content: center;
}
.tbg-search-overlay[hidden] { display: none; }
.tbg-search-overlay__inner { position: relative; width: 100%; max-width: 720px; }
.tbg-search-form { display: flex; align-items: center; border-bottom: 1px solid var(--color-border); padding-bottom: .75rem; }
.tbg-search-form__input { flex: 1; border: 0; outline: 0; background: none; font-size: 1.4rem; font-family: var(--font-heading); text-transform: uppercase; }
.tbg-search-form button { display: flex; }
.tbg-search-form svg, .tbg-search-overlay__close svg { width: 22px; height: 22px; }
.tbg-search-overlay__close { position: absolute; top: -60px; right: 0; }

/* Mobile menu drawer */
.tbg-mobile-menu {
	position: fixed;
	inset: 0 20% 0 0;
	z-index: 70;
	background: var(--color-paper);
	border-right: 1px solid var(--color-border);
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform .25s var(--ease);
}
.tbg-mobile-menu.is-open { transform: translateX(0); }
.tbg-mobile-menu[hidden] { display: block; visibility: hidden; pointer-events: none; }
.tbg-mobile-menu__header { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); border-bottom: 1px solid var(--color-border); }
.tbg-mobile-menu__list { text-transform: uppercase; }
.tbg-mobile-menu__list > li { border-bottom: 1px solid var(--color-border); }
.tbg-mobile-menu__list a { display: block; padding: 1rem var(--gutter); font-size: .95rem; letter-spacing: .03em; }
.tbg-mobile-menu__list ul { padding-left: var(--gutter); background: var(--color-sand); }
.tbg-mobile-menu__list ul a { text-transform: none; font-size: .85rem; }

/* Sub-menus (see the toggle-injection script in theme.js): collapsed by
   default and only shown once their parent row is tapped. */
.tbg-mobile-menu__row { display: flex; align-items: stretch; }
.tbg-mobile-menu__row > a { flex: 1 1 auto; }
.tbg-mobile-menu__toggle {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	cursor: pointer;
}
.tbg-mobile-menu__chevron { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.tbg-mobile-menu__item--expanded > .tbg-mobile-menu__row .tbg-mobile-menu__chevron { transform: rotate(180deg); }
.tbg-mobile-menu__item--has-children > ul { display: none; }
.tbg-mobile-menu__item--has-children.tbg-mobile-menu__item--expanded > ul { display: block; }
/* The toggle column's divider is drawn once on the sub-menu itself, not on
   each row's button — a per-button border-left breaks into a dashed-looking
   line because leaf rows (no children, no button) have no border to
   continue it, so it visibly gaps at every non-expandable item. */
.tbg-mobile-menu__list li > ul { position: relative; }
.tbg-mobile-menu__list li > ul::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 48px;
	width: 1px;
	background: var(--color-border);
}

/* Overlay scrim behind drawer/search when open */
body.tbg-scroll-lock { overflow: hidden; }

/* ---------------------------------- Add-to-cart toast ---------------------- */
.tbg-toast {
	position: fixed;
	left: 50%;
	bottom: var(--space);
	z-index: 90;
	transform: translate(-50%, 12px);
	opacity: 0;
	transition: transform .25s var(--ease), opacity .25s var(--ease);
	pointer-events: none;
}
.tbg-toast.is-open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.tbg-toast[hidden] { display: block; visibility: hidden; }
.tbg-toast__inner {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	max-width: calc(100vw - 2 * var(--gutter));
	padding: .9rem 1rem .9rem 1.3rem;
	background: var(--color-paper);
	border: 1px solid var(--color-ink);
	box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
.tbg-toast__message { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbg-toast__action { padding: .6rem 1.2rem; font-size: .72rem; white-space: nowrap; flex-shrink: 0; }
.tbg-toast__close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	cursor: pointer;
}
.tbg-toast__close svg { width: 16px; height: 16px; }
@media (max-width: 480px) {
	.tbg-toast { left: var(--gutter); right: var(--gutter); transform: translateY(12px); }
	.tbg-toast.is-open { transform: translateY(0); }
	.tbg-toast__inner { max-width: none; }
	.tbg-toast__message { white-space: normal; }
}

/* ---------------------------------- Marquee ------------------------------- */
.tbg-marquee {
	overflow: hidden;
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	background: var(--color-sand);
	padding: .85rem 0;
}
.tbg-marquee__track { display: flex; width: max-content; animation: tbg-scroll 28s linear infinite; }
.tbg-marquee__item {
	flex-shrink: 0;
	padding-right: .5rem;
	font-family: var(--font-heading);
	font-size: .85rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
@keyframes tbg-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tbg-marquee__track { animation: none; } }

/* ---------------------------------- Hero banner ---------------------------- */
.tbg-hero {
	display: grid;
	border-bottom: 1px solid var(--color-border);
}
.tbg-hero__links {
	display: flex;
	align-items: flex-start;
	overflow: hidden;
	padding-top: var(--space-2x);
	padding-bottom: var(--space-2x);
}
.tbg-hero__list li { line-height: 1.15; }
.tbg-hero__list a {
	display: inline-flex;
	align-items: flex-start;
	gap: .3rem;
	font-family: var(--font-heading);
	font-size: clamp(1.6rem, 3.4vw, 2.6rem);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: -0.01em;
}
.tbg-hero__list a:hover { color: var(--color-accent); }
/* Product shot on white: shown whole (contain), never cropped to fill. */
.tbg-hero__media { aspect-ratio: 3/2; background: #fff; overflow: hidden; border-top: 1px solid var(--color-border); }
.tbg-hero__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tbg-hero__media .tbg-placeholder-media--full { width: 100%; height: 100%; color: var(--color-meta); }

@media (min-width: 900px) {
	.tbg-hero { grid-template-columns: 1fr 1fr; min-height: var(--hero-height); max-height: var(--hero-height); overflow: hidden; }
	.tbg-hero__media { aspect-ratio: auto; border-top: 0; border-left: 1px solid var(--color-border); }
}

/* ---------------------------------- Brand statement ------------------------ */
.tbg-statement {
	background: var(--color-sand);
	padding-top: var(--space-2x);
	padding-bottom: var(--space-2x);
	text-align: left;
	display: grid;
	gap: 1rem;
	max-height: var(--screen);
	overflow: hidden;
}
.tbg-statement__eyebrow {
	font-family: var(--font-heading);
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--color-accent);
}
.tbg-statement p {
	font-family: var(--font-heading);
	font-size: clamp(1.3rem, 2.6vw, 1.9rem);
	line-height: 1.35;
	max-width: 46ch;
	text-transform: none;
	letter-spacing: 0;
}
@media (min-width: 900px) {
	.tbg-statement {
		grid-template-columns: 220px 1fr;
		align-items: start;
	}
}

/* ---------------------------------- Sections generic ----------------------- */
.tbg-section {
	padding-top: var(--space-2x);
	padding-bottom: var(--space-2x);
	border-top: 1px solid var(--color-border);
	max-height: var(--screen);
	overflow: hidden;
}
.tbg-section__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space); margin-bottom: var(--space); }
.tbg-section__head h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.tbg-empty { color: var(--color-meta); }

/* Homepage product sections get viewport-height card media so a section never
   needs vertical scrolling to view in full. */
.tbg-featured .tbg-product-card__media,
.tbg-tabs .tbg-product-card__media {
	aspect-ratio: auto;
	height: clamp(140px, 32vh, 440px);
}

/* Product grid & cards ------------------------------------------------------ */
.tbg-product-grid,
ul.products {
	display: grid;
	grid-template-columns: repeat(var(--tbg-grid-cols, 4), 1fr);
	gap: 1px;
	background: transparent;
	border: 1px solid var(--color-border);
	list-style: none;
	margin: 0;
	padding: 0;
}
.tbg-product-card { background: var(--color-paper); display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--color-border); }
.tbg-product-grid[data-cols="1"] { grid-template-columns: minmax(0, 340px); }
.tbg-product-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 340px)); }
.tbg-product-card__media { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; background: #fff; }
.tbg-product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.tbg-product-card__media .tbg-product-card__media-alt { object-fit: cover; }
.tbg-product-card__media-alt {
	position: absolute; inset: 0; opacity: 0; transition: opacity .3s var(--ease);
}
.tbg-product-card__media:hover .tbg-product-card__media-alt { opacity: 1; }
.tbg-placeholder-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--color-meta); padding: 18%; }
.tbg-badge {
	position: absolute; top: .6rem; left: .6rem;
	padding: .25rem .6rem;
	font-family: var(--font-heading);
	font-size: .65rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	background: var(--color-ink); color: var(--color-paper);
}
.tbg-badge--sale { background: var(--color-accent); }
.tbg-badge--soldout { background: var(--color-meta); }
.tbg-product-card__body { padding: 1rem 1.1rem 1.3rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.tbg-product-card__title { font-family: var(--font-heading); font-size: .88rem; letter-spacing: .01em; }
.tbg-product-card__title a:hover { color: var(--color-accent); }
.tbg-product-card__meta { font-size: .78rem; color: var(--color-meta); }
.tbg-product-card__price { font-family: var(--font-heading); font-size: .9rem; margin-top: auto; }
.tbg-product-card__price del { color: var(--color-meta); margin-right: .4rem; font-weight: 400; }
.tbg-product-card__price ins { text-decoration: none; color: var(--color-accent); }
.tbg-request-price { font-family: var(--font-heading); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid currentColor; }

/* Category tabs -------------------------------------------------------------- */
.tbg-section__head--tabs { flex-wrap: wrap; }
.tbg-tabs__nav { display: flex; gap: var(--space); flex-wrap: wrap; }
.tbg-tabs__btn {
	font-family: var(--font-heading);
	font-size: .8rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding-bottom: .25rem;
	border-bottom: 2px solid transparent;
}
.tbg-tabs__btn:hover, .tbg-tabs__btn.is-active { border-bottom-color: currentColor; }
/* Each panel shows up to 8 products (two rows of four), which is taller than
   the one-viewport clamp on .tbg-section — let this section grow instead of
   clipping the second row under the next section. */
.tbg-tabs { max-height: none; overflow: visible; }
.tbg-tabs__panel { display: none; }
.tbg-tabs__panel.is-active { display: block; }

@media (min-width: 1024px) {
	.tbg-section__head--tabs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
	.tbg-section__head--tabs h2 { justify-self: start; }
	.tbg-section__head--tabs .tbg-tabs__nav { justify-self: center; }
	.tbg-section__head--tabs .tbg-view-all { justify-self: end; }
}

/* CTA split ------------------------------------------------------------------ */
.tbg-cta-split { display: grid; border-top: 1px solid var(--color-border); }
.tbg-cta-split__media { aspect-ratio: 4/3; background: #fff; overflow: hidden; }
.tbg-cta-split__media img { width: 100%; height: 100%; object-fit: contain; }
.tbg-cta-split .tbg-placeholder-media { color: var(--color-meta); }
.tbg-cta-split__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1rem; padding-top: var(--space-2x); padding-bottom: var(--space-2x); border-top: 1px solid var(--color-border); }
.tbg-cta-split__content h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.tbg-cta-split__content p { max-width: 32ch; color: var(--color-meta); }

@media (min-width: 900px) {
	.tbg-cta-split { grid-template-columns: 1fr 1fr; max-height: var(--screen); overflow: hidden; }
	.tbg-cta-split__media { aspect-ratio: auto; }
	.tbg-cta-split__content { padding-left: var(--space-2x); border-top: 0; border-left: 1px solid var(--color-border); }
}

/* CTA full-screen -------------------------------------------------------------- */
.tbg-cta-full {
	position: relative;
	min-height: clamp(320px, 45vh, 520px);
	max-height: var(--screen);
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center;
	border-top: 1px solid var(--color-border);
	color: var(--color-paper);
	background-color: var(--color-green);
	overflow: hidden;
}
.tbg-cta-full::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 65%);
	pointer-events: none;
}
.tbg-cta-full .tbg-placeholder-media--full { position: absolute; inset: 0; color: rgba(255,255,255,.25); padding: 20%; }
.tbg-cta-full__content { position: relative; z-index: 1; padding-top: var(--space-2x); padding-bottom: var(--space-2x); display: flex; flex-direction: column; gap: 1.25rem; }

/* --product: the band's image is a product shot on a white background, so it
   is shown whole (contain) on a white band with dark text beside it, rather
   than cropped to fill the band behind white text. */
.tbg-cta-full--product {
	align-items: center;
	background-size: contain;
	background-position: right center;
	background-repeat: no-repeat;
	color: var(--color-ink);
	background-color: #fff;
}
.tbg-cta-full--product::before { content: none; }
.tbg-cta-full--product .tbg-cta-full__content { max-width: 50%; align-items: flex-start; }
.tbg-cta-full--product .tbg-btn--invert { border-color: var(--color-ink); color: var(--color-ink); }
.tbg-cta-full--product .tbg-btn--invert:hover { background: var(--color-ink); color: var(--color-paper); }
/* 900px and up: text in the left half, image contained in the right half,
   with a divider between them (same split as .tbg-cta-split). The image is
   set inline on the section, so the right half inherits it and the section
   itself stops painting it. */
@media (min-width: 900px) {
	.tbg-cta-full--product { background-size: 0 0; min-height: min(33.33vw, var(--screen)); }
	.tbg-cta-full--product::after {
		content: '';
		position: absolute;
		top: 0; right: 0; bottom: 0;
		width: 50%;
		background-image: inherit;
		background-size: contain;
		background-position: center;
		background-repeat: no-repeat;
		border-left: 1px solid var(--color-border);
	}
}
/* Stacked below 900px: image across the top (3:2, so 66.67vw tall), a divider,
   then the text under it. */
@media (max-width: 899px) {
	.tbg-cta-full--product { background-size: 100% auto; background-position: top center; align-items: flex-end; }
	.tbg-cta-full--product::after { content: ''; position: absolute; top: 66.67vw; left: 0; right: 0; border-top: 1px solid var(--color-border); }
	.tbg-cta-full--product .tbg-cta-full__content { max-width: none; padding-top: calc(66.67vw + var(--space)); padding-bottom: var(--space); }
}
.tbg-cta-full__content h2 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 20ch; }

/* Press logos ------------------------------------------------------------------ */
.tbg-press {
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-2x);
	padding-bottom: var(--space-2x);
	text-align: center;
	max-height: var(--screen);
	overflow: hidden;
}
.tbg-press__heading { font-size: .8rem; letter-spacing: .1em; color: var(--color-meta); margin-bottom: var(--space); }
.tbg-press__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2x); filter: grayscale(1); opacity: .6; }
.tbg-press__logos img { max-height: 32px; width: auto; }

/* Instagram grid --------------------------------------------------------------- */
.tbg-instagram {
	border-top: 1px solid var(--color-border);
	padding-top: var(--space-2x);
	padding-bottom: var(--space-2x);
	max-height: var(--screen);
	overflow: hidden;
}
.tbg-instagram__heading { text-align: center; margin-bottom: var(--space); font-size: 1rem; letter-spacing: .05em; }
.tbg-instagram__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: transparent; border: 1px solid var(--color-border); }
.tbg-instagram__tile { aspect-ratio: 1; position: relative; display: flex; align-items: center; justify-content: center; background: var(--color-sand); color: var(--color-meta); padding: 20%; overflow: hidden; box-shadow: 0 0 0 1px var(--color-border); }
.tbg-instagram__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; padding: 0; transition: transform .4s var(--ease); }
.tbg-instagram__tile:hover img { transform: scale(1.05); }
.tbg-instagram__tile:hover { color: var(--color-accent); }
@media (min-width: 700px) { .tbg-instagram__grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------------------------------- Footer -------------------------------- */
.tbg-footer {
	/* Green band: the ink-on-cream tokens are flipped for everything inside. */
	--color-ink: var(--color-cream);
	--color-meta: rgba(236,229,214,.7);
	--color-border: rgba(236,229,214,.25);
	--color-accent: var(--color-gold);
	background: var(--color-green);
	color: var(--color-ink);
	border-top: 1px solid var(--color-midnight);
}
.tbg-footer .tbg-logo__mark { height: 56px; color: #d6c19a; /* logo's own champagne, as drawn on green */ }
.tbg-footer__top {
	display: grid;
	gap: var(--space-2x);
	padding-top: var(--space-2x);
	padding-bottom: var(--space-2x);
}
.tbg-footer__brand p.tbg-footer__blurb { max-width: 34ch; color: var(--color-meta); margin-top: .75rem; }
.tbg-social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.tbg-social__link svg { width: 18px; height: 18px; }
.tbg-social__link:hover { color: var(--color-accent); }
.tbg-footer__heading { font-size: .8rem; letter-spacing: .06em; margin-bottom: 1rem; }
.tbg-footer__col ul { display: flex; flex-direction: column; gap: .55rem; }
.tbg-footer__col a { font-size: .88rem; color: var(--color-ink); }
.tbg-footer__col a:hover { color: var(--color-accent); }
.tbg-newsletter-form { display: flex; border-bottom: 1px solid var(--color-border); margin-top: .5rem; }
.tbg-newsletter-form input { flex: 1; background: none; border: 0; padding: .5rem 0; outline: 0; color: inherit; }
.tbg-newsletter-form input::placeholder { color: var(--color-meta); opacity: 1; }
.tbg-newsletter-form button { font-family: var(--font-heading); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.tbg-newsletter-form__message { font-size: .8rem; margin-top: .5rem; color: var(--color-accent); min-height: 1.2em; }
.tbg-footer__bottom { border-top: 1px solid var(--color-border); padding-top: 1rem; padding-bottom: 1rem; font-size: .78rem; color: var(--color-meta); text-align: center; }

@media (min-width: 900px) {
	.tbg-footer__top { grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; }
	.tbg-footer__top > .tbg-footer__col { border-left: 1px solid var(--color-border); padding-left: var(--space); }
}

/* ---------------------------------- Generic pages -------------------------- */
.tbg-page { padding-top: var(--space-2x); padding-bottom: var(--space-2x); max-width: var(--container-max); margin: 0 auto; }
.tbg-page--narrow { max-width: 860px; }
/* Shop/product/cart/checkout open with a breadcrumb, which already carries
   its own top padding for a gap under the header — stacking the page's full
   --space-2x on top of that doubled up the space before anything (even the
   breadcrumb text) appeared. Give these a lighter page-level gap since the
   breadcrumb provides its own. */
.tbg-page:has(> .tbg-breadcrumb:first-child) { padding-top: var(--space); }
.tbg-post-list { display: grid; gap: var(--space-2x); grid-template-columns: repeat(3, 1fr); }
.tbg-post-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 1rem; }
.tbg-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tbg-post-card__title { font-size: 1rem; margin-bottom: .4rem; }
.tbg-post-card__meta { font-size: .78rem; color: var(--color-meta); margin-bottom: .5rem; }
.tbg-empty-state { text-align: center; padding: var(--space-2x) 0; }
.tbg-empty-state h1 { font-size: 4rem; margin-bottom: 1rem; }
.tbg-single-page__header h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: var(--space-half); }
.tbg-single-page__media { margin-top: var(--space); aspect-ratio: 16/9; overflow: hidden; }
.tbg-single-page__media img { width: 100%; height: 100%; object-fit: cover; }
.tbg-single-page__content, .tbg-single-post__content { margin-top: var(--space); line-height: 1.7; }
.tbg-single-page__content p, .tbg-single-post__content p { margin-bottom: 1.2rem; text-transform: none; }
.tbg-single-page__content h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 2.4rem 0 .9rem; }
.tbg-single-page__content ul, .tbg-single-page__content ol { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.tbg-single-page__content ul { list-style: disc; }
.tbg-single-page__content ol { list-style: decimal; }
.tbg-single-page__content li { margin-bottom: .4rem; }
.tbg-single-page__content li::marker { color: var(--color-gold); }
.tbg-single-page__content a { text-decoration: underline; text-underline-offset: 3px; }
.tbg-single-page__content .tbg-policy-updated { color: var(--color-meta); font-size: .9rem; }
.tbg-single-page__content--lead p {
	font-family: var(--font-heading);
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	line-height: 1.45;
	max-width: 56ch;
}

/* About values grid ----------------------------------------------------- */
.tbg-values__grid { display: grid; border-top: 1px solid var(--color-border); margin-top: var(--space); }
.tbg-values__item { padding: var(--space) 0; border-bottom: 1px solid var(--color-border); display: grid; gap: .75rem; align-content: start; }
.tbg-values__index { font-family: var(--font-heading); font-size: .8rem; letter-spacing: .05em; color: var(--color-meta); }
.tbg-values__item h3 { font-size: 1.2rem; }
.tbg-values__item p { font-family: var(--font-body); color: var(--color-meta); text-transform: none; max-width: 40ch; }

@media (min-width: 900px) {
	.tbg-values__grid { grid-template-columns: repeat(3, 1fr); }
	.tbg-values__item { border-bottom: 0; border-right: 1px solid var(--color-border); padding: var(--space-2x) var(--space); }
	.tbg-values__item:first-child { padding-left: 0; }
	.tbg-values__item:last-child { border-right: 0; }
}

/* ---------------------------------- Contact page ---------------------------- */
.tbg-contact-heading { font-family: var(--font-heading); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; margin-bottom: var(--space); }
.tbg-contact-grid {
	display: grid;
	gap: var(--space-2x);
	border-top: 1px solid var(--color-border);
	border-bottom: 1px solid var(--color-border);
	padding-top: var(--space-2x);
	padding-bottom: var(--space-2x);
}
.tbg-contact-grid__col--info .tbg-single-page__content { margin-top: 0; }
.tbg-contact-details { display: flex; flex-direction: column; gap: .7rem; margin-top: var(--space); }
.tbg-contact-details__item { display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.tbg-contact-details__item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-meta); }
.tbg-contact-details__item a:hover { color: var(--color-accent); }
.tbg-contact-orders { margin-top: 1.2rem; line-height: 1.6; }
.tbg-contact-orders a { color: inherit; text-decoration: underline; }
.tbg-contact-social__heading { margin-top: var(--space); margin-bottom: 0; }
.tbg-contact-social__heading + .tbg-social { margin-top: .75rem; }

.tbg-contact-form { max-width: 560px; }
.tbg-contact-form__row { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.tbg-contact-form__row-group { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.tbg-contact-form__row-group .tbg-contact-form__row { margin-bottom: 0; }
.tbg-contact-form__row label { font-family: var(--font-heading); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.tbg-contact-form__row input, .tbg-contact-form__row textarea { border: 1px solid var(--color-border); background: var(--color-paper); padding: .7rem .9rem; width: 100%; }
.tbg-contact-form__submit { width: 100%; justify-content: center; }
.tbg-contact-form__message { margin-top: 1rem; font-size: .85rem; color: var(--color-accent); }

.tbg-contact-map-section { margin-top: var(--space-2x); }
.tbg-contact-map-section .tbg-contact-heading { margin-bottom: var(--space); }
.tbg-contact-map { width: 100%; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); aspect-ratio: 16/9; max-height: 520px; }
.tbg-contact-map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (min-width: 700px) {
	.tbg-contact-form__row-group { grid-template-columns: 1fr 1fr; }
	.tbg-contact-form__submit { width: auto; min-width: 220px; }
}
@media (min-width: 900px) {
	.tbg-contact-grid { grid-template-columns: 1fr 1fr; }
	.tbg-contact-grid__col--form { border-left: 1px solid var(--color-border); padding-left: var(--space-2x); }
}

/* ---------------------------------- Shop archive --------------------------- */
.tbg-breadcrumb { font-size: .78rem; color: var(--color-meta); padding-top: 1.2rem; padding-bottom: 1.2rem; }
.tbg-breadcrumb a:hover { color: var(--color-accent); }
.tbg-shop__title-section { border-bottom: 1px solid var(--color-border); padding-bottom: var(--space); margin-bottom: var(--space); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space); justify-content: space-between; }
.tbg-shop__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.tbg-shop__subcats { display: flex; gap: var(--space); flex-wrap: wrap; }
.subcategory-btn {
	font-family: var(--font-heading);
	font-size: .8rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	padding-bottom: .25rem;
	border-bottom: 2px solid transparent;
}
.subcategory-btn:hover, .subcategory-btn.active { border-bottom-color: currentColor; }
.tbg-shop__sort select {
	border: 1px solid var(--color-border);
	background: var(--color-paper);
	padding: .5rem .9rem;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .03em;
}

/* Custom dropdown (progressive enhancement over select.orderby — see theme.js) */
.tbg-select { position: relative; display: inline-flex; }
.tbg-select__native {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tbg-select__trigger {
	display: flex;
	align-items: center;
	gap: .6rem;
	border: 1px solid var(--color-border);
	background: var(--color-paper);
	padding: .5rem .9rem;
	font-family: var(--font-heading);
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--color-ink);
	cursor: pointer;
}
.tbg-select__trigger:hover,
.tbg-select--open .tbg-select__trigger { border-color: var(--color-ink); color: var(--color-accent); }
.tbg-select__trigger:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.tbg-select__chevron { width: 10px; height: 10px; flex-shrink: 0; transition: transform .15s ease; }
.tbg-select--open .tbg-select__chevron { transform: rotate(180deg); }
.tbg-select__menu {
	position: absolute;
	top: calc(100% + 2px);
	right: 0;
	z-index: 25;
	min-width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--color-paper);
	border: 1px solid var(--color-border);
}
.tbg-select__option {
	padding: .55rem .9rem;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	white-space: nowrap;
	cursor: pointer;
}
.tbg-select__option.is-selected { color: var(--color-accent); }
.tbg-select__option:hover,
.tbg-select__option:focus { background: var(--color-ink); color: var(--color-paper); outline: none; }
/* WooCommerce's pagination markup wraps the page links in <ul class="page-numbers">
   — the same class the individual <a>/<span> page links carry — so a bare
   ".page-numbers" rule styled the wrapping <ul> itself as if it were a button
   (bordered box, padding) while its <li> items sat unflexed and stacked
   inside it. Scope the button look to the actual links/current-page span,
   and flex the <ul>, not the <nav>. */
.woocommerce-pagination { margin-top: var(--space-2x); }
.woocommerce-pagination ul.page-numbers { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--color-border); padding: .5rem .9rem; font-family: var(--font-heading); font-size: .8rem; }
.woocommerce-pagination .page-numbers.current { background: var(--color-ink); color: var(--color-paper); }
.woocommerce-pagination .page-numbers.dots { border: 0; }

@media (min-width: 1024px) {
	.tbg-shop__title-section { display: grid; grid-template-columns: 1fr auto 1fr; }
	.tbg-shop__title-section .tbg-shop__title { grid-column: 1; justify-self: start; }
	.tbg-shop__title-section .tbg-shop__subcats { grid-column: 2; justify-self: center; }
	.tbg-shop__title-section .tbg-shop__sort { grid-column: 3; justify-self: end; }
}

/* ---------------------------------- Single product -------------------------- */
.tbg-single-product__layout { display: grid; gap: 0; margin-top: var(--space); }
.tbg-single-product__gallery img { border: 1px solid var(--color-border); }
/* WooCommerce serves whatever aspect ratio the uploaded photo happens to
   have — most products are cropped to a tidy square, but a handful of
   uploads are unusually tall, blowing the gallery (and the whole layout
   next to it) way down the page. Pin every slide to a fixed square so it's
   consistent no matter what a given upload's dimensions are. */
.woocommerce-product-gallery__image { margin-bottom: 1px; aspect-ratio: 3 / 2; overflow: hidden; background: #fff; }
.woocommerce-product-gallery__image a { display: block; width: 100%; height: 100%; }
.woocommerce-product-gallery__image img { width: 100%; height: 100%; object-fit: contain; }
.woocommerce-product-gallery__trigger { display: none; }
/* Thumbnail strip under the main image. WooCommerce outputs it as an <ol>,
   so strip the list numbering and lay it out as a row; each thumb uses the
   same 3:2 uncropped framing as the main slide. */
.flex-control-thumbs { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.flex-control-thumbs li { margin: 0; }
.flex-control-thumbs img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; cursor: pointer; opacity: .55; transition: opacity .2s var(--ease); }
.flex-control-thumbs img:hover, .flex-control-thumbs img.flex-active { opacity: 1; }
.tbg-single-product__summary { padding-top: var(--space); }
.product_title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.woocommerce-product-rating { font-size: .82rem; color: var(--color-meta); margin-bottom: 1rem; display: block; }
.price { font-family: var(--font-heading); font-size: 1.3rem; display: block; margin-bottom: 1.25rem; }
.price del { color: var(--color-meta); font-weight: 400; margin-right: .5rem; }
.price ins { text-decoration: none; color: var(--color-accent); }
.woocommerce-product-details__short-description { color: var(--color-meta); margin-bottom: 1.5rem; max-width: 42ch; }
.woocommerce-product-details__short-description p { text-transform: none; }
.cart { display: flex; align-items: center; gap: 1rem; margin-bottom: var(--space); }
.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--color-border); flex-shrink: 0; }
.quantity input.qty {
	width: 44px;
	border: 0;
	background: none;
	padding: .8rem 0;
	text-align: center;
	-moz-appearance: textfield;
}
.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tbg-qty__btn {
	width: 36px;
	flex-shrink: 0;
	font-family: var(--font-heading);
	font-size: 1rem;
	line-height: 1;
}
.tbg-qty__btn:hover { background: var(--color-sand); }
.tbg-qty__btn--minus { border-right: 1px solid var(--color-border); }
.tbg-qty__btn--plus { border-left: 1px solid var(--color-border); }
button.single_add_to_cart_button {
	flex: 1;
	border: 1px solid var(--color-ink);
	padding: .9rem 1.5rem;
	font-family: var(--font-heading);
	font-size: .8rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: background-color .25s var(--ease), color .25s var(--ease);
}
button.single_add_to_cart_button:hover { background: var(--color-ink); color: var(--color-paper); }
/* WooCommerce's own core script (add-to-cart.js) always inserts a bare,
   unstyled "View cart" link straight after this button on every add —
   ajax or not, regardless of theme. The add-to-cart snackbar already gives
   a styled "View Cart" action, so drop this one rather than style a
   redundant second link next to the button. */
.single_add_to_cart_button + .added_to_cart { display: none; }

.tbg-product-facts { display: flex; flex-direction: column; gap: .7rem; margin-bottom: var(--space); padding-top: var(--space); border-top: 1px solid var(--color-border); }
.tbg-product-facts__item { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--color-charcoal); }
.tbg-product-facts__item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-meta); }

.tbg-single-product__accordion { border-top: 1px solid var(--color-border); margin-top: var(--space-2x); padding-top: var(--space-2x); }
.woocommerce-tabs ul.tabs { display: flex; gap: var(--space); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space); flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li {
	font-family: var(--font-heading);
	font-size: .8rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding-bottom: .6rem;
	border-bottom: 2px solid transparent;
	cursor: pointer;
}
.woocommerce-tabs ul.tabs li.active,
.woocommerce-tabs ul.tabs li:hover { border-bottom-color: currentColor; }
.woocommerce-tabs .panel { display: none; max-width: 62ch; line-height: 1.7; }
.woocommerce-tabs .panel.is-active { display: block; }
.woocommerce-tabs table.shop_attributes { width: 100%; border-collapse: collapse; }
.woocommerce-tabs table.shop_attributes th, .woocommerce-tabs table.shop_attributes td { border: 1px solid var(--color-border); padding: .6rem .8rem; text-align: left; font-size: .88rem; }

.related.products { border-top: 1px solid var(--color-border); margin-top: var(--space-2x); padding-top: var(--space-2x); }
.related.products > h2 { font-size: 1.4rem; margin-bottom: var(--space); }

/* Review form star rating: JS hides the <select id="rating"> and inserts
   a <p class="stars"> of <a class="star-N">N of 5 stars</a> links — style
   those as a simple row of star glyphs instead of relying on WC's icon font.
   Links are shown in reverse (row-reverse) so the CSS-only ~ hover trick
   (hovered star + its DOM-later siblings) fills the correct, preceding stars. */
.comment-form-rating #rating { display: none; }
.comment-form-rating p.stars span[role="group"] { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.comment-form-rating p.stars a {
	position: relative;
	width: 1.2rem;
	height: 1.2rem;
	font-size: 0;
}
.comment-form-rating p.stars a::before {
	content: '\2606';
	position: absolute;
	inset: 0;
	font-size: 1.2rem;
	line-height: 1;
	color: var(--color-border);
}
.comment-form-rating p.stars a.active::before,
.comment-form-rating p.stars a.active ~ a::before,
.comment-form-rating p.stars a:hover::before,
.comment-form-rating p.stars a:hover ~ a::before {
	content: '\2605';
	color: var(--color-accent);
}

/* Review list + form ---------------------------------------------------- */
#reviews.woocommerce-Reviews { max-width: 62ch; }
.woocommerce-Reviews-title { font-size: 1.4rem; margin-bottom: var(--space); }
.commentlist { display: flex; flex-direction: column; gap: var(--space); margin-bottom: var(--space-2x); }
.commentlist .comment_container { display: flex; flex-direction: column; gap: .4rem; padding-bottom: var(--space); border-bottom: 1px solid var(--color-border); }
.commentlist .woocommerce-review__author { font-family: var(--font-heading); font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; }
.commentlist .woocommerce-review__dash { display: none; }
.commentlist .woocommerce-review__published-date { color: var(--color-meta); font-size: .78rem; }
.commentlist .star-rating { font-size: .85rem; margin: .2rem 0; }
.commentlist .description p { color: var(--color-charcoal); }
.woocommerce-noreviews { color: var(--color-meta); margin-bottom: var(--space); }

.tbg-write-review-btn { margin-top: var(--space); margin-bottom: var(--space-2x); }
#review_form_wrapper { display: none; max-width: 46ch; }
#review_form_wrapper.is-open { display: block; }
#review_form .comment-reply-title { font-size: 1.1rem; display: block; margin-bottom: 1rem; }
.comment-notes, .comment-form-rating > label { font-size: .85rem; color: var(--color-meta); margin-bottom: 1.25rem; }
.comment-form-rating { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.comment-form-rating > label { margin-bottom: 0; font-family: var(--font-heading); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--color-ink); }
.comment-form-comment, .comment-form-author, .comment-form-email {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	margin-bottom: 1.25rem;
}
.comment-form-comment label, .comment-form-author label, .comment-form-email label {
	font-family: var(--font-heading);
	font-size: .75rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.comment-form-comment textarea, .comment-form-author input, .comment-form-email input {
	border: 1px solid var(--color-border);
	background: var(--color-paper);
	padding: .7rem .9rem;
	width: 100%;
}
.comment-form-comment textarea { min-height: 140px; resize: vertical; }
.comment-form-cookies-consent { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--color-meta); margin-bottom: 1.25rem; }
#review_form .form-submit input#submit {
	border: 1px solid var(--color-ink);
	padding: .85rem 1.9rem;
	font-family: var(--font-heading);
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: transparent;
	transition: background-color .25s var(--ease), color .25s var(--ease);
}
#review_form .form-submit input#submit:hover { background: var(--color-ink); color: var(--color-paper); }

@media (min-width: 900px) {
	.tbg-single-product__layout { grid-template-columns: 1.1fr 1fr; gap: var(--space-2x); }
	.tbg-single-product__summary { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; padding-top: 0; }
}

/* ---------------------------------- Cart / checkout / account (baseline) ---- */
/* WooCommerce notices (stock errors, coupon messages, "confirm your email"
   prompts, form validation) had no styling anywhere on the site — they
   rendered as a bare button sitting inline against raw text. */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.5rem;
	justify-content: space-between;
	border: 1px solid var(--color-border);
	background: var(--color-sand);
	padding: 1rem 1.25rem;
	margin-bottom: var(--space);
	list-style: none;
}
.woocommerce-error { border-color: var(--color-accent); }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { order: 2; flex-shrink: 0; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; margin-bottom: var(--space); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 1px solid var(--color-border); padding: .8rem; text-align: left; }
.woocommerce-checkout input[type="text"], .woocommerce-checkout input[type="email"], .woocommerce-checkout input[type="tel"], .woocommerce-checkout textarea, .woocommerce-checkout select,
.woocommerce-form-row input, .woocommerce-form-row select {
	width: 100%;
	border: 1px solid var(--color-border);
	background: var(--color-paper);
	padding: .7rem .9rem;
	margin-bottom: 1rem;
}
#payment #place_order, .checkout-button, .wc-proceed-to-checkout a {
	display: inline-flex;
	border: 1px solid var(--color-ink);
	background: var(--color-ink);
	color: var(--color-paper);
	padding: .9rem 1.75rem;
	font-family: var(--font-heading);
	font-size: .8rem;
	letter-spacing: .05em;
	text-transform: uppercase;
}

/* ---------------------------------- My Account (dashboard) ----------------- */
/* WooCommerce ships this page with zero structural markup to hang a layout
   off — nav and content are just two siblings in normal flow, so unstyled
   it renders as a flat stack of plain links and browser-default form
   fields. Scoped to the body class WC puts only on this page (.woocommerce-account),
   so it can't leak into the very different cart/checkout form layouts. */
.woocommerce-account .woocommerce { margin-top: var(--space); }
.woocommerce-account .woocommerce-notices-wrapper:empty { display: none; }

@media (min-width: 900px) {
	.woocommerce-account .woocommerce { display: grid; grid-template-columns: 260px 1fr; align-items: start; gap: var(--space-2x); }
}

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 var(--space); padding: 0; border: 1px solid var(--color-border); }
.woocommerce-account .woocommerce-MyAccount-navigation-link { border-bottom: 1px solid var(--color-border); }
.woocommerce-account .woocommerce-MyAccount-navigation-link:last-child { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation-link a { display: block; padding: 1rem 1.25rem; font-family: var(--font-heading); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.woocommerce-account .woocommerce-MyAccount-navigation-link:not(.is-active) a:hover { background: var(--color-sand); }
.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a { background: var(--color-ink); color: var(--color-paper); }
@media (min-width: 900px) {
	.woocommerce-account .woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--header-height) + 2rem); }
}

.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-account .woocommerce-MyAccount-content > p:only-of-type a { text-decoration: underline; }

/* Dashboard welcome + quick-link cards (woocommerce/myaccount/dashboard.php) */
.tbg-account-welcome { padding-bottom: var(--space); margin-bottom: var(--space-2x); border-bottom: 1px solid var(--color-border); }
.tbg-account-welcome__heading { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .4rem; }
.tbg-account-welcome__meta { color: var(--color-meta); }
.tbg-account-cards { display: grid; gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); margin-bottom: var(--space-2x); }
@media (min-width: 640px) {
	.tbg-account-cards { grid-template-columns: repeat(3, 1fr); }
}
.tbg-account-card { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; background: var(--color-paper); padding: 1.5rem; transition: background-color .25s var(--ease); }
.tbg-account-card:hover { background: var(--color-sand); }
.tbg-account-card svg { width: 22px; height: 22px; }
.tbg-account-card__title { font-family: var(--font-heading); font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; }
.tbg-account-card__desc { font-size: .82rem; color: var(--color-meta); }

/* Orders table */
.woocommerce-account .woocommerce-orders-table__cell-order-status { text-transform: capitalize; }

/* Address cards */
.woocommerce-account .woocommerce-Addresses { display: grid; gap: var(--space); margin-top: var(--space); }
@media (min-width: 640px) {
	.woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr 1fr; }
}
.woocommerce-account .woocommerce-Address { border: 1px solid var(--color-border); padding: 1.5rem; }
.woocommerce-account .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.woocommerce-account .woocommerce-Address-title h2 { font-family: var(--font-heading); font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.woocommerce-account .woocommerce-Address-title .edit { font-size: .75rem; text-decoration: underline; flex-shrink: 0; }
.woocommerce-account address { font-style: normal; line-height: 1.8; color: var(--color-charcoal); }

/* Forms: address edit / account details / login */
.woocommerce-account .form-row,
.woocommerce-account .woocommerce-form-row {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	margin-bottom: 1.25rem;
	max-width: 480px;
}
.woocommerce-account .form-row label,
.woocommerce-account .woocommerce-form-row label {
	font-family: var(--font-heading);
	font-size: .75rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--color-charcoal);
}
.woocommerce-account .form-row input,
.woocommerce-account .form-row select,
.woocommerce-account .woocommerce-form-row input,
.woocommerce-account .woocommerce-form-row select { margin-bottom: 0; }
.woocommerce-account .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-body);
	font-size: .85rem;
	text-transform: none;
	letter-spacing: normal;
}
/* :has(button) alone is too broad here — Chrome exposes its native password-
   reveal control on the password field to :has(), so it also (wrongly)
   matched that row. Scoped to the actual submit button. */
.woocommerce-account .woocommerce-form-login { max-width: 480px; }
.woocommerce-account .woocommerce-form-login .form-row:has(button[type="submit"]) { flex-direction: row; align-items: center; justify-content: space-between; max-width: none; flex-wrap: wrap; gap: 1rem; }
.woocommerce-account .woocommerce-LostPassword { font-size: .85rem; }
.woocommerce-account fieldset { border: 0; border-top: 1px solid var(--color-border); padding: var(--space) 0 0; margin: var(--space) 0 0; }
.woocommerce-account fieldset legend { font-family: var(--font-heading); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding: 0 0 1rem; }

/* Buttons: Save address / Save changes / View order / Add address / Log in */
.woocommerce-account .button {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-ink);
	padding: .8rem 1.6rem;
	font-family: var(--font-heading);
	font-size: .75rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	background: transparent;
	color: var(--color-ink);
	transition: background-color .25s var(--ease), color .25s var(--ease);
}
.woocommerce-account .button:hover { background: var(--color-ink); color: var(--color-paper); }
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button { padding: .5rem 1.1rem; font-size: .7rem; }

/* ---------------------------------- Responsive: nav collapse ---------------- */
@media (max-width: 1023px) {
	.tbg-header__burger { display: inline-flex; }
	.tbg-nav { display: none; }
	.tbg-post-list { grid-template-columns: repeat(2, 1fr); }
	/* .tbg-nav is display:none here, so it drops out of the grid entirely —
	   without an explicit 2-column template the right icons slide into the
	   (now-empty) middle track and the flexible left column overflows into them. */
	.tbg-header__row { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
	.tbg-header__left { justify-self: stretch; gap: .6rem; }
	.tbg-header__right { gap: .1rem; }
}
@media (max-width: 767px) {
	.tbg-product-grid, ul.products { grid-template-columns: repeat(2, 1fr); }
	.tbg-post-list { grid-template-columns: 1fr; }
	.tbg-quick-links__list { flex-wrap: wrap; }
	.tbg-quick-links__list li { flex: 1 1 50%; border-bottom: 1px solid var(--color-border); }
	.tbg-mobile-menu { inset: 0 12% 0 0; }
	.tbg-press__logos { gap: var(--space); }

	/* WooCommerce's own responsive-table CSS isn't loaded (we disable
	   woocommerce_enqueue_styles in inc/woocommerce-setup.php), so cart,
	   order and account tables have no mobile layout at all without this —
	   reproduce it using the data-title attributes WC already renders on
	   .shop_table_responsive tables (cart, orders, downloads, payment methods). */
	.woocommerce table.shop_table_responsive,
	.woocommerce table.shop_table_responsive tbody,
	.woocommerce table.shop_table_responsive tr,
	.woocommerce table.shop_table_responsive td { display: block; width: 100%; }
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tr { border: 1px solid var(--color-border); margin-bottom: var(--space-half); }
	.woocommerce table.shop_table_responsive td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-half);
		text-align: right;
		border: 0;
		border-bottom: 1px solid var(--color-border);
	}
	.woocommerce table.shop_table_responsive td:last-child { border-bottom: 0; }
	.woocommerce table.shop_table_responsive td[data-title]::before {
		content: attr(data-title);
		font-family: var(--font-heading);
		font-size: .75rem;
		letter-spacing: .05em;
		text-transform: uppercase;
		text-align: left;
		margin-right: var(--space-half);
	}

	/* Any shop table without the responsive-stacking class (e.g. the checkout
	   review-order table) — contain overflow instead of breaking page width. */
	.woocommerce table.shop_table:not(.shop_table_responsive) {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* WooCommerce Cart/Checkout blocks (used on the Cart and Checkout pages, and
   the order-summary line items reused in the Checkout sidebar): the block's
   own CSS lays each row out on a fixed-width grid (image | product | total)
   that doesn't shrink, so on narrow phones a long price — routine on this
   catalogue's five-figure furniture — pushes the total off the right edge
   of the screen. Below 480px (WooCommerce's own small-screen cutoff) drop
   the row to a simple wrapping flex layout so the total falls onto its own
   line instead of overflowing. WooCommerce's own rule for the grid comes
   from a 3-class selector (e.g. ".wc-block-cart table.wc-block-cart-items
   .wc-block-cart-items__row"), so `!important` is needed here rather than
   chasing that specificity with an equally brittle selector chain. */
@media (max-width: 480px) {
	.wc-block-cart-items__row {
		display: flex !important;
		flex-wrap: wrap;
		align-items: flex-start;
	}
	.wc-block-cart-item__product {
		flex: 1 1 auto;
		min-width: 0;
	}
	.wc-block-cart-item__total {
		flex: 1 0 100% !important;
		justify-content: flex-start;
		margin-top: .5rem;
		padding-left: 96px;
	}
}

/* Homepage sections are deliberately clamped to one viewport tall on larger
   screens (see .tbg-section / .tbg-statement / .tbg-press / .tbg-instagram)
   so a section never needs scrolling to view in full — but below the 900px
   breakpoint where their layouts switch from side-by-side to stacked, the
   same content needs more height than one mobile screen provides, so the
   clamp silently clips it (worst case: half of an 8-product category-tabs
   panel). Let sections grow naturally below that point instead. */
@media (max-width: 899px) {
	.tbg-section,
	.tbg-statement,
	.tbg-cta-full,
	.tbg-press,
	.tbg-instagram {
		max-height: none;
		overflow: visible;
	}
}
