/* ============================================================
   Terra Gems — main stylesheet
   Palette:
   dark   #14161a (header/footer)   darker #0b0c0e (promo bar)
   ink    #17181a                   muted  #6f7277
   bg     #f6f5f2 (low-sat paper)   card   #ffffff
   line   #e6e4df                   accent #a5825c (muted bronze)
   ============================================================ */

:root {
	--tg-dark: #14161a;
	--tg-dark-2: #1d2026;
	--tg-darker: #0b0c0e;
	--tg-ink: #17181a;
	--tg-muted: #6f7277;
	--tg-bg: #f6f5f2;
	--tg-card: #ffffff;
	--tg-line: #e6e4df;
	--tg-accent: #a5825c;
	--tg-accent-dark: #8a6b49;
	--tg-radius: 10px;
	--tg-container: 1240px;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--tg-bg);
	color: var(--tg-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 15.5px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: Georgia, "Times New Roman", "Songti SC", serif;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--tg-ink);
	line-height: 1.25;
	margin: 0 0 14px;
}

p { margin: 0 0 14px; }

a { color: var(--tg-ink); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--tg-accent-dark); }

img { max-width: 100%; height: auto; display: block; }

.tg-container {
	max-width: var(--tg-container);
	margin: 0 auto;
	padding: 0 24px;
}

.tg-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--tg-dark); color: #fff; padding: 10px 16px; z-index: 999;
}
.tg-skip:focus { left: 12px; top: 12px; }

::selection { background: var(--tg-accent); color: #fff; }

/* ---------- Promo bar ---------- */

.tg-promo {
	background: #ebe3d6;
	color: #6f6152;
	font-size: 12.5px;
	letter-spacing: .04em;
	text-align: center;
	padding: 8px 16px;
}
.tg-promo a { color: #5a4d3e; }
.tg-promo a:hover { color: var(--tg-accent-dark); }

/* ---------- Header ---------- */

.tg-header {
	background: #fbfaf8;
	position: sticky;
	top: 0;
	z-index: 500;
	border-bottom: 1px solid var(--tg-line);
	box-shadow: 0 2px 14px rgba(23, 24, 26, .05);
}

/* The header bar is dark and full-bleed, so it can run wider than the page
   container — the menu needs that room once the catalog grows (v1.0.11). */
.tg-header-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
	height: 66px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.tg-brand { flex: 0 0 auto; }
.tg-brand img.custom-logo { max-height: 40px; width: auto; }
.tg-brand-name {
	font-family: Georgia, serif;
	font-size: 19px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tg-ink);
}
.tg-brand-name:hover { color: var(--tg-accent-dark); }

.tg-nav { flex: 1 1 auto; }
.tg-nav ul.tg-menu {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0; padding: 0;
	list-style: none;
	justify-content: center;
}
.tg-nav ul.tg-menu > li { position: relative; }
.tg-nav ul.tg-menu > li > a {
	display: block;
	white-space: nowrap;
	padding: 22px 9px;
	color: #4b4d52;
	font-size: 12.5px;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.tg-nav ul.tg-menu > li > a:hover { color: var(--tg-accent-dark); }
.tg-nav ul.tg-menu ul {
	display: none;
	position: absolute; top: 100%; left: 0;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--tg-line);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(10, 10, 12, .12);
	padding: 8px 0;
	margin: 0;
	list-style: none;
	z-index: 600;
}
.tg-nav ul.tg-menu li:hover > ul { display: block; }
.tg-nav ul.tg-menu ul li a {
	display: block;
	padding: 9px 18px;
	font-size: 13.5px;
	color: var(--tg-ink);
}
.tg-nav ul.tg-menu ul li a:hover { background: var(--tg-bg); color: var(--tg-accent-dark); }

.tg-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex: 0 0 auto;
}
.tg-contact-link { color: #4b4d52; font-size: 13.5px; }
.tg-contact-link:hover { color: var(--tg-accent-dark); }

.tg-lang { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tg-lang a { color: #4b4d52; font-size: 13px; }
.tg-lang .tg-lang-current a { color: var(--tg-ink); border-bottom: 1px solid var(--tg-accent); }

.tg-burger {
	display: none;
	background: none; border: 0; cursor: pointer;
	padding: 8px; margin-left: 4px;
}
.tg-burger span {
	display: block; width: 20px; height: 1.6px;
	background: var(--tg-ink); margin: 4.5px 0;
	transition: transform .2s ease, opacity .2s ease;
}
body.tg-nav-open .tg-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.tg-nav-open .tg-burger span:nth-child(2) { opacity: 0; }
body.tg-nav-open .tg-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.tg-mobile-panel { display: none; }

/* ---------- Buttons ---------- */

.tg-btn {
	display: inline-block;
	padding: 11px 26px;
	font-size: 13.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all .18s ease;
	line-height: 1.4;
}
.tg-btn-solid {
	background: var(--tg-accent);
	color: #fff;
	border-color: var(--tg-accent);
}
.tg-btn-solid:hover { background: var(--tg-accent-dark); border-color: var(--tg-accent-dark); color: #fff; }
.tg-btn-line {
	background: transparent;
	color: var(--tg-ink);
	border-color: #c9c6bf;
}
.tg-btn-line:hover { border-color: var(--tg-accent); color: var(--tg-accent-dark); }

.tg-header .tg-btn-quote {
	padding: 9px 20px;
	background: var(--tg-accent);
	color: #fff;
	border-color: var(--tg-accent);
}
.tg-header .tg-btn-quote:hover { background: var(--tg-accent-dark); border-color: var(--tg-accent-dark); }

/* ---------- Hero ---------- */

.tg-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1100px 340px at 30% -90px, rgba(165, 130, 92, .18), transparent 62%),
		#f4efe5;
	color: var(--tg-ink);
	border-bottom: 1px solid #e7e0d4;
}

/* Full-bleed photo band behind the copy (v1.0.14) */
.tg-hero-strip {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.tg-hero-tile { overflow: hidden; }
.tg-hero-tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Cream veil: solid behind the copy, dissolving to the photos on the right */
.tg-hero-veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg,
		rgba(246, 245, 242, .995) 0%,
		rgba(246, 245, 242, .99) 36%,
		rgba(246, 245, 242, .88) 46%,
		rgba(246, 245, 242, .40) 54%,
		rgba(246, 245, 242, .08) 62%,
		rgba(246, 245, 242, 0) 70%,
		rgba(246, 245, 242, 0) 100%);
}
.tg-hero-inner {
	position: relative;
	z-index: 2;
	text-align: left;
	padding-top: 112px;
	padding-bottom: 120px;
}
.tg-overline {
	font-size: 11.5px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--tg-accent);
	margin-bottom: 18px;
	font-weight: 600;
}
.tg-hero-title {
	color: var(--tg-ink);
	font-size: 38px;
	line-height: 1.22;
	max-width: 540px;
	margin: 0 0 20px;
}
.tg-hero-sub {
	color: #5f5d59;
	font-size: 15.5px;
	line-height: 1.7;
	max-width: 420px;
	margin: 0 0 32px;
}
.tg-hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
.tg-hero .tg-btn-line { color: var(--tg-ink); border-color: #cfc7b8; }
.tg-hero .tg-btn-line:hover { border-color: var(--tg-accent); color: var(--tg-accent-dark); }

/* ---------- Catalog split (home) ---------- */

.tg-catalog {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	padding-top: 64px;
	padding-bottom: 72px;
}

.tg-side-title,
.tg-section-title { font-size: 27px; margin-bottom: 8px; }

.tg-section-head { margin-bottom: 28px; }

.tg-cat-list { margin: 18px 0 0; padding: 0; list-style: none; }
.tg-cat-list > li { border-bottom: 1px solid var(--tg-line); }
.tg-cat-list > li:last-child { border-bottom: none; }
.tg-cat-list a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 13px 2px;
	font-size: 14.5px;
}
.tg-cat-list a:hover { color: var(--tg-accent-dark); padding-left: 6px; }
.tg-cat-list em { font-style: normal; color: var(--tg-muted); font-size: 12.5px; }

.tg-cat-sub {
	margin: 0 0 10px;
	padding: 0 0 0 12px;
	list-style: none;
	border-left: 1px solid var(--tg-line);
}
.tg-cat-sub li { border-bottom: none; }
.tg-cat-sub a { font-size: 13.5px; padding: 7px 2px; color: #6f6b64; }
.tg-cat-sub a:hover { color: var(--tg-accent-dark); padding-left: 6px; }
.tg-cat-sub em { font-size: 11.5px; }

.tg-cat-empty {
	display: flex; justify-content: space-between; align-items: center;
	padding: 13px 2px;
	font-size: 14.5px;
	color: #b3aea5;
	cursor: default;
}
.tg-cat-empty em {
	font-style: normal;
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #c2bdb3;
}

.tg-side-cta {
	margin-top: 30px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
}
.tg-side-cta p { font-size: 13.5px; color: var(--tg-muted); }
.tg-side-cta .tg-btn { width: 100%; text-align: center; }

.tg-catalog-more { margin-top: 30px; text-align: center; }

/* ---------- WooCommerce loops ---------- */

.tg-shop,
.tg-content { padding-top: 44px; padding-bottom: 72px; }

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	margin: 0 !important;
	padding: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	background: var(--tg-card);
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	overflow: hidden;
	padding-bottom: 16px;
	text-align: left;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	border-color: #d8d2c8;
	box-shadow: 0 18px 40px rgba(23, 24, 26, .08);
}
.woocommerce ul.products li.product a img { margin: 0; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14.5px;
	font-weight: 600;
	padding: 14px 18px 4px;
	color: var(--tg-ink);
	line-height: 1.5;
	min-height: 62px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover { color: var(--tg-accent-dark); }
/* ---------- Catalog mode: prices visible, cart gone (v1.0.15) ---------- */

.woocommerce ul.products li.product .price {
	display: block;
	padding: 0 18px 16px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--tg-ink);
}
.woocommerce ul.products li.product .price del {
	color: var(--tg-muted);
	font-weight: 400;
	font-size: 13px;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol { font-size: .9em; }

/* No cart, no checkout: this is an inquiry catalog */
body.tg-no-cart .add_to_cart_button,
body.tg-no-cart .single_add_to_cart_button,
body.tg-no-cart .added_to_cart,
body.tg-no-cart a.button.product_type_simple,
body.tg-no-cart .woocommerce-cart-form,
body.tg-no-cart .wc-block-cart { display: none !important; }
body.tg-no-cart form.cart .quantity { display: none !important; }

/* Fallback for products that have no price yet */
.tg-price-request {
	color: var(--tg-accent-dark);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .02em;
}
.tg-price-note {
	font-size: 12.5px;
	color: var(--tg-muted);
	letter-spacing: .02em;
	margin: -6px 0 20px;
}

/* Only when the shop owner explicitly turns prices off */
body.tg-hide-price .price,
body.tg-hide-price .wc-block-components-product-price,
body.tg-hide-price .wc-block-grid__product-price { display: none !important; }

/* YITH quote button on product page */
.woocommerce div.product .yith-ywraq-add-button .button,
.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button {
	background: var(--tg-accent) !important;
	color: #fff !important;
	border-radius: 4px !important;
	font-weight: 600;
	letter-spacing: .04em;
}
.woocommerce div.product .yith-ywraq-add-button .button:hover { background: var(--tg-accent-dark) !important; }

/* ---------- Product page ---------- */

.woocommerce div.product {
	background: var(--tg-card);
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: 34px;
	margin-top: 34px;
}
.woocommerce div.product div.images { width: 46%; }
.woocommerce div.product div.summary { width: 50%; }
.woocommerce div.product .product_title {
	font-size: 30px;
	font-weight: 600;
	letter-spacing: -.01em;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--tg-ink);
	margin: 4px 0 6px;
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del { font-size: 17px; color: var(--tg-muted); font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; }

.tg-mini-quote {
	margin-top: 20px;
	padding: 14px 18px;
	background: var(--tg-bg);
	border: 1px dashed #d8d2c8;
	border-radius: 8px;
	font-size: 13.5px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	color: var(--tg-muted);
}
.tg-mini-quote a { color: var(--tg-accent-dark); font-weight: 600; }
.tg-mini-quote a:hover { color: var(--tg-ink); }

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	margin: 0 0 0;
	padding: 0 0 0;
	border-bottom: 1px solid var(--tg-line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-bottom: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: none;
	border: none;
	border-radius: 0;
	margin: 0 26px 0 0;
	padding: 0 0 12px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border-bottom: 2px solid var(--tg-accent);
	margin-bottom: -1px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tg-muted);
	padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--tg-ink); }

.tg-specs {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	max-width: 640px;
}
.tg-specs th, .tg-specs td {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 1px solid var(--tg-line);
	vertical-align: top;
}
.tg-specs th { width: 180px; font-weight: 600; color: var(--tg-muted); }
.tg-specs-title { font-size: 20px; margin-bottom: 14px; }

/* Bulk quote box */
.tg-quote-box {
	background: var(--tg-bg);
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: 26px 30px;
}
.tg-quote-title { font-size: 21px; margin-bottom: 8px; }
.tg-quote-note { color: var(--tg-muted); font-size: 14px; max-width: 560px; }
.tg-quote-list { margin: 18px 0 22px; }
.tg-quote-row {
	display: flex;
	gap: 18px;
	padding: 9px 0;
	border-bottom: 1px solid var(--tg-line);
	font-size: 14px;
}
.tg-quote-row dt { flex: 0 0 110px; color: var(--tg-muted); font-weight: 600; }
.tg-quote-row dd { margin: 0; }
.tg-quote-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Shop layout */
.tg-shop {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 44px;
}
.tg-shop-side { position: sticky; top: 100px; align-self: start; }
.tg-widget { background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 20px; margin-bottom: 20px; }
.tg-widget-title { font-size: 15px; margin-bottom: 12px; }
.tg-widget ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.tg-widget li { padding: 7px 0; border-bottom: 1px solid var(--tg-line); }
.tg-widget li:last-child { border-bottom: none; }

/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb { font-size: 12.5px; color: var(--tg-muted); margin: 22px 0 0; }
.woocommerce .woocommerce-breadcrumb a { color: var(--tg-muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--tg-accent-dark); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-top-color: var(--tg-accent);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(23,24,26,.06);
}

/* ---------- Trust bar & CTA ---------- */

.tg-trust { background: #fff; border-top: 1px solid var(--tg-line); border-bottom: 1px solid var(--tg-line); }
.tg-trust-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	padding-top: 52px;
	padding-bottom: 52px;
}
.tg-trust-item h3 { font-size: 16.5px; margin-bottom: 8px; }
.tg-trust-item p { font-size: 13.5px; color: var(--tg-muted); margin: 0; }

.tg-cta {
	background:
		radial-gradient(900px 260px at 50% 130%, rgba(165, 130, 92, .18), transparent 62%),
		#f2ece2;
	text-align: center;
	padding: 74px 24px;
	border-top: 1px solid #e7e0d4;
}
.tg-cta h2 { color: var(--tg-ink); font-size: 32px; margin-bottom: 12px; }
.tg-cta p { color: #6a6660; max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */

.tg-footer { background: #efece5; color: #5f5d59; border-top: 1px solid #e3ded4; }
.tg-footer-inner {
	max-width: var(--tg-container);
	margin: 0 auto;
	padding: 56px 24px 44px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
}
.tg-footer-brand {
	font-family: Georgia, serif;
	font-size: 19px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--tg-ink);
	margin-bottom: 14px;
}
.tg-footer-col h3 {
	color: #8a6b49;
	font-family: inherit;
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.tg-footer-about p { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.tg-footer-menu, .tg-footer-contact { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.tg-footer-menu li, .tg-footer-contact li { padding: 5px 0; }
.tg-footer-menu a, .tg-footer-contact a { color: #5f5d59; }
.tg-footer-menu a:hover, .tg-footer-contact a:hover { color: var(--tg-accent-dark); }

.tg-footer-bottom {
	border-top: 1px solid #e3ded4;
	padding: 18px 24px;
	text-align: center;
	font-size: 12.5px;
	color: #8d8880;
}

/* ---------- Content pages ---------- */

.tg-narrow { max-width: 880px; }
.tg-page-head { margin-bottom: 26px; }
.tg-page-title { font-size: 34px; margin-bottom: 6px; }
.tg-entry { font-size: 15.5px; }
.tg-entry h2 { font-size: 26px; margin-top: 30px; }
.tg-entry a { color: var(--tg-accent-dark); }
.tg-entry a:hover { text-decoration: underline; }

.tg-post { background: #fff; border: 1px solid var(--tg-line); border-radius: var(--tg-radius); padding: 28px 32px; margin-bottom: 22px; }
.tg-post-title { font-size: 22px; margin-bottom: 6px; }
.tg-post-meta { font-size: 12.5px; color: var(--tg-muted); margin-bottom: 10px; }
.tg-post-excerpt { color: #3c3e42; }
.tg-post-thumb img { border-radius: 8px; margin-bottom: 20px; }

.tg-pagination { margin-top: 26px; }
.tg-pagination .page-numbers {
	display: inline-block; padding: 8px 14px;
	border: 1px solid var(--tg-line); border-radius: 6px;
	background: #fff; margin-right: 6px;
	color: var(--tg-ink); font-size: 13.5px;
}
.tg-pagination .current, .tg-pagination .page-numbers:hover { border-color: var(--tg-accent); color: var(--tg-accent-dark); }

/* ---------- Forms ---------- */

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="search"], textarea, select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #d8d5cf;
	border-radius: 6px;
	background: #fff;
	font-size: 14.5px;
	font-family: inherit;
	color: var(--tg-ink);
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--tg-accent);
	box-shadow: 0 0 0 3px rgba(165, 130, 92, .14);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, 1fr); }
	.tg-catalog { grid-template-columns: 240px 1fr; gap: 34px; }
	.tg-trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Eight top-level items need compact type on smaller laptops (v1.0.11) */
@media (max-width: 1150px) {
	.tg-nav ul.tg-menu > li > a { padding: 22px 5px; font-size: 11.5px; letter-spacing: .01em; }
	.tg-header-inner { gap: 12px; }
	.tg-brand-name { font-size: 15px; letter-spacing: .08em; }
}

/* The horizontal menu needs ~630px on its own once there are eight top-level
   items. Below 1024px the page simply cannot host it, so the burger takes
   over there instead of squeezing the buttons off the right edge (v1.0.11). */
@media (max-width: 1024px) {
	.tg-nav, .tg-contact-link, .tg-lang { display: none; }
	.tg-burger { display: block; }
	.tg-header-inner { justify-content: space-between; }
	.tg-mobile-panel {
		display: none;
		background: #fbfaf8;
		padding: 8px 24px 26px;
		border-top: 1px solid var(--tg-line);
		box-shadow: 0 18px 30px rgba(23, 24, 26, .08);
	}
	body.tg-nav-open .tg-mobile-panel { display: block; }
	.tg-mobile-menu { list-style: none; margin: 0; padding: 0; }
	.tg-mobile-menu > li > a {
		display: block;
		padding: 13px 0;
		color: var(--tg-ink);
		font-size: 14px;
		letter-spacing: .06em;
		text-transform: uppercase;
		border-bottom: 1px solid var(--tg-line);
	}
	.tg-mobile-menu ul { list-style: none; padding-left: 16px; }
	.tg-mobile-menu ul li a { display: block; padding: 10px 0; color: var(--tg-muted); font-size: 13.5px; }
	.tg-mobile-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
	.tg-mobile-actions .tg-btn { width: 100%; text-align: center; }
}

@media (max-width: 960px) {
	.tg-catalog { grid-template-columns: 1fr; }
	.tg-shop { grid-template-columns: 1fr; }
	.tg-shop-side { position: static; }

	.tg-hero-title { font-size: 34px; }
	.tg-hero-inner { padding-top: 64px; padding-bottom: 68px; }

	.woocommerce div.product div.images,
	.woocommerce div.product div.summary { width: 100%; float: none; }
	.tg-footer-inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 640px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.tg-trust-grid { grid-template-columns: 1fr; gap: 26px; }
	.tg-hero-title { font-size: 28px; }
	.tg-container, .tg-header-inner, .tg-footer-inner { padding-left: 18px; padding-right: 18px; }
	.woocommerce div.product { padding: 22px; }
	.tg-quote-row { flex-direction: column; gap: 2px; }
	body { font-size: 15px; }
}

/* ---------- Shop sidebar: theme-rendered category nav (v1.0.3) ---------- */
.tg-shop-side .tg-widget-title {
	font-size: 12.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tg-muted);
	margin-bottom: 4px;
}
.tg-cat-list--shop { margin-top: 0; }
.tg-cat-list--shop .tg-cat-all > a { font-weight: 600; }
.tg-cat-list--shop > li.is-current > a,
.tg-cat-list--shop a.is-current {
	color: var(--tg-accent-dark);
	font-weight: 600;
}

/* ---------- Empty category state (v1.0.3) ---------- */
.tg-empty {
	background: #fff;
	border: 1px solid var(--tg-line);
	border-radius: var(--tg-radius);
	padding: 44px 32px;
	text-align: center;
	margin-top: 28px;
}
.tg-empty-title { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.tg-empty-text { font-size: 14px; color: var(--tg-muted); margin: 0 0 20px; }
.tg-empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }

/* ---------- Parent category: sub-category chips (v1.0.4) ---------- */
.tg-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 26px;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--tg-line);
}
.tg-chips-label {
	font-size: 11.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tg-muted);
	margin-right: 6px;
}
.tg-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border: 1px solid var(--tg-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	line-height: 1.2;
	color: var(--tg-ink);
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.tg-chip:hover {
	border-color: var(--tg-accent);
	color: var(--tg-accent-dark);
}
.tg-chip em {
	font-style: normal;
	font-size: 11.5px;
	color: var(--tg-muted);
}

/* ---------- Sidebar: "View all" tail link (v1.0.4) ---------- */
.tg-cat-more > a { font-size: 12.5px; font-style: italic; color: var(--tg-muted); }

/* ============================================================
   Mobile hardening (v1.0.6)
   ============================================================ */

/* 1. Nothing may push the page wider than the screen */
html, body { max-width: 100%; overflow-x: hidden; }

/* 2. Long words / long product titles wrap instead of spilling out */
.tg-hero-title,
.tg-section-title,
.tg-side-title,
.tg-page-title,
.woocommerce-loop-product__title { overflow-wrap: break-word; word-break: break-word; }

/* 3. Category rows: name shrinks with ellipsis, count never gets pushed out */
.tg-cat-list a,
.tg-cat-empty { min-width: 0; }
.tg-cat-list a span,
.tg-cat-empty span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tg-cat-list a em,
.tg-cat-empty em { flex: 0 0 auto; padding-left: 10px; }

@media (max-width: 960px) {
	/* Header: the quote button historically overflowed here; the mobile
	   panel already carries one, so keep the header to logo + burger. */
	.tg-btn-quote { display: none; }
	.tg-header-inner { gap: 12px; justify-content: space-between; }
	.tg-brand { min-width: 0; overflow: hidden; }
	.tg-brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.tg-promo { font-size: 11.5px; line-height: 1.5; padding: 7px 16px; text-align: center; }
}

@media (max-width: 640px) {
	/* Hero gets breathing room instead of a 28px wall of text */
	.tg-hero-title { font-size: 26px; line-height: 1.3; }
	.tg-hero-sub { font-size: 14px; }
	.tg-hero-actions { gap: 10px; }
	.tg-hero-actions .tg-btn { width: 100%; text-align: center; }

	/* Section headings */
	.tg-side-title,
	.tg-section-title { font-size: 22px; }
	.tg-section-head { margin-bottom: 20px; }

	/* Category navigation */
	.tg-cat-list a { font-size: 14px; padding: 11px 2px; }
	.tg-cat-sub a { font-size: 13px; padding: 8px 2px; }
	.tg-cat-sub { padding-left: 10px; }

	/* Stone chips: two per row max, smaller type */
	.tg-chips { gap: 6px; padding-bottom: 16px; margin-bottom: 20px; }
	.tg-chips-label { width: 100%; margin-bottom: 2px; }
	.tg-chip { font-size: 12px; padding: 6px 10px; gap: 5px; }

	/* Product cards */
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 13.5px;
		padding: 11px 12px 12px;
		min-height: 0;
		line-height: 1.45;
	}
	.woocommerce ul.products, .woocommerce-page ul.products { gap: 12px; }

	/* The sidebar quote card should not sit in the middle of the scroll flow */
	.tg-side-cta { margin-top: 22px; padding: 18px; }
}

/* 4. Mobile reading order: products first, category tree after (v1.0.7) */
@media (max-width: 960px) {
	.tg-catalog-main,
	.tg-shop-main { order: 1; }
	.tg-catalog-side,
	.tg-shop-side {
		order: 2;
		margin-top: 40px;
		padding-top: 26px;
		border-top: 1px solid var(--tg-line);
	}
	.tg-catalog-side .tg-side-cta,
	.tg-shop-side .tg-side-cta { margin-top: 24px; }
}

/* 5. Header quote button stays usable on phones (v1.0.8)
      — compact instead of hidden; brand truncates if space runs out */
@media (max-width: 960px) {
	.tg-btn-quote {
		display: inline-flex;
		align-items: center;
		padding: 9px 13px;
		font-size: 11px;
		letter-spacing: .03em;
		white-space: nowrap;
	}
	.tg-header-inner { gap: 10px; }
}

/* 6. Product gallery: keep thumbnails in a tidy strip and never let a
      broken image's alt text spill over the layout (v1.0.8) */
.woocommerce div.product div.images img { color: transparent; }
.woocommerce div.product div.images .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}
.woocommerce div.product div.images .flex-control-thumbs li {
	width: 82px;
	margin: 0;
	overflow: hidden;
	border-radius: 6px;
}
.woocommerce div.product div.images .flex-control-thumbs img {
	width: 100%;
	height: 82px;
	object-fit: cover;
	opacity: .75;
}
.woocommerce div.product div.images .flex-control-thumbs img.flex-active { opacity: 1; }

@media (max-width: 640px) {
	.woocommerce div.product .product_title { font-size: 22px; line-height: 1.35; }
	.woocommerce div.product { padding: 18px; margin-top: 22px; }
	.woocommerce div.product div.images { margin-bottom: 18px; }
	.woocommerce div.product div.images .flex-control-thumbs li { width: 64px; }
	.woocommerce div.product div.images .flex-control-thumbs img { height: 64px; }
}

/* 7. Phone header budget: brand shrinks, quote button + burger always fit (v1.0.9) */
@media (max-width: 640px) {
	.tg-brand { flex: 1 1 auto; min-width: 0; }
	.tg-brand-name { font-size: 13px; letter-spacing: .06em; }
	.tg-btn-quote { padding: 8px 11px; font-size: 10.5px; }
	.tg-header-inner { gap: 8px; }
}

/* 8. Product page polish (v1.0.10) */
.woocommerce div.product .product_meta {
	font-size: 13px;
	color: var(--tg-muted);
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--tg-line);
	line-height: 1.7;
}
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .product_meta a { color: var(--tg-muted); }
.woocommerce div.product .product_meta a:hover { color: var(--tg-accent-dark); }

@media (max-width: 640px) {
	/* Tabs: one tidy wrapping row instead of three stacked underline bars */
	.woocommerce div.product .woocommerce-tabs ul.tabs {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 16px;
		padding: 0 0 10px;
		border-bottom: 1px solid var(--tg-line);
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs li {
		float: none;
		margin: 0;
		padding: 0;
		border-bottom: none !important;
		background: none !important;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		display: inline-block;
		padding: 4px 0;
		font-size: 11.5px;
		letter-spacing: .06em;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
		border-bottom: 2px solid var(--tg-accent) !important;
		margin-bottom: -1px;
	}
	.woocommerce div.product .woocommerce-tabs .panel { padding-top: 18px; }

	/* Tags line is noise on a phone — SKU and categories carry the info */
	.woocommerce div.product .product_meta .tagged_as { display: none; }

	/* Bigger tap target for the quote CTA */
	.woocommerce div.product .yith-ywraq-add-button .button,
	.woocommerce div.product form.cart .button,
	.woocommerce div.product .single_add_to_cart_button {
		width: 100%;
		min-height: 46px;
		font-size: 13px;
	}

	.woocommerce div.product .tg-specs th { width: 42%; }
	.woocommerce div.product .tg-specs th,
	.woocommerce div.product .tg-specs td { padding: 9px 10px; font-size: 13px; }
	.tg-quote-box { padding: 20px 18px; }
}

/* 9. Tabs: never show list bullets if WooCommerce styles load after ours (v1.0.10) */
.woocommerce div.product .woocommerce-tabs ul.tabs { list-style: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { list-style: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { text-decoration: none; }

/* ============================================================
   Hero photo band — stacked on small screens (v1.0.14)
   Below 1100px the four-up band is unreadable behind the copy,
   so the photos move on top as a two-up strip and the text sits
   on plain cream underneath.
   ============================================================ */

@media (max-width: 1100px) {
	.tg-hero { display: flex; flex-direction: column; }
	.tg-hero-strip {
		position: relative;
		inset: auto;
		order: -1;
		height: 200px;
		grid-template-columns: repeat(2, 1fr);
	}
	.tg-hero-tile:nth-child(n + 3) { display: none; }
	.tg-hero-veil { display: none; }
	.tg-hero-inner { padding-top: 36px; padding-bottom: 46px; }
	.tg-hero-title { max-width: none; }
	.tg-hero-sub { max-width: none; }
}

@media (max-width: 640px) {
	.tg-hero-strip { height: 168px; }
	.tg-hero-inner { padding-top: 28px; padding-bottom: 34px; }
	.tg-hero-actions .tg-btn { width: 100%; text-align: center; }
}
