/**
 * TeckForge Digital design layer.
 *
 * Two shelves, two colours: Tech is electric blue, Non-Tech is emerald.
 * Every card, chip and topic tile carries its shelf colour so visitors
 * always know where they are. Brand navy and ember come from the logo.
 *
 *  1. Tokens  2. Header  3. Hero & shelf doors  4. Sections  5. Shelves tabs
 *  6. Topics  7. Product cards  8. Trust, FAQ, offers  9. Catalog pages
 *  10. Footer  11. Responsive  12. Motion
 */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--tf-tech: #3355ff;
	--tf-tech-deep: #1f3fd6;
	--tf-tech-soft: #e9edff;
	--tf-life: #0c9a77;
	--tf-life-deep: #087a5e;
	--tf-life-soft: #e2f5ef;
	--tf-ember-soft: #fff0e4;
	--tf-card-radius: 14px;
	--tf-panel-radius: 22px;
	--ll-radius-cover: 6px;
	--ll-radius-control: 10px;
	--ll-radius-panel: 16px;
	--ll-rule: #e2e5ee;
	--ll-rule-strong: #c9cedb;
	--ll-muted: #5a6478;
	--tf-shadow-card: 0 1px 2px rgba(23, 32, 51, 0.06), 0 6px 20px -12px rgba(23, 32, 51, 0.25);
	--tf-shadow-lift: 0 2px 6px rgba(23, 32, 51, 0.08), 0 22px 40px -18px rgba(23, 32, 51, 0.4);
	--ll-shadow-cover: 0 1px 2px rgba(23, 32, 51, 0.12), 0 10px 22px -12px rgba(23, 32, 51, 0.45);
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, .section-title { font-weight: 700; letter-spacing: -0.022em; }
.section-title { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem); }

.button, .button-accent { border-radius: 999px; font-weight: 650; }
.tf-button-lg { min-height: 52px; padding-inline: 1.6rem; font-size: 1rem; }

/* 2. Header ---------------------------------------------------------------- */
.site-header {
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	backdrop-filter: saturate(1.6) blur(14px);
	border-bottom-color: var(--ll-rule);
}
.site-header-inner { gap: 1.25rem; }
.primary-navigation .menu { flex-wrap: nowrap; gap: 0; }
.primary-navigation .menu a { font-weight: 600; border-radius: 999px; padding-inline: 0.7rem; white-space: nowrap; }
.primary-navigation { flex: 0 0 auto; }
.header-actions { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.header-search { flex: 0 1 280px; width: auto; min-width: 150px; }
@media (max-width: 1180px) {
	.header-search { display: none; }
}
.primary-navigation .menu > li > a[href*="/tech/"]:not([href*="non-tech"]) { color: var(--tf-tech-deep); }
.primary-navigation .menu > li > a[href*="/non-tech/"] { color: var(--tf-life-deep); }
.primary-navigation .sub-menu { border-radius: 14px; box-shadow: var(--tf-shadow-lift); border-color: var(--ll-rule); padding: 0.4rem; }
.primary-navigation .sub-menu a { border-radius: 8px; }
.header-search input[type="search"],
.header-search .search-field { border-radius: 999px; background: #f1f3f8; border-color: transparent; }
.header-search input[type="search"]:focus { background: #fff; border-color: var(--ll-ink); }

/* 3. Hero ------------------------------------------------------------------ */
.tf-hero { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem); }
.tf-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(1rem, 2.4vw, 1.75rem);
	align-items: stretch;
}
.tf-hero-grid--single { grid-template-columns: 1fr; }
.tf-hero-intro {
	position: relative;
	overflow: hidden;
	background: var(--ll-ink);
	color: #fff;
	border-radius: var(--tf-panel-radius);
	padding: clamp(1.75rem, 4vw, 3.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	isolation: isolate;
}
/* A blue and a green glow: the two shelves, meeting behind the headline. */
.tf-hero-intro::before,
.tf-hero-intro::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 26rem;
	height: 26rem;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.55;
}
.tf-hero-intro::before { background: var(--tf-tech); top: -12rem; right: -8rem; }
.tf-hero-intro::after { background: var(--tf-life); bottom: -14rem; left: -10rem; opacity: 0.45; }
.tf-hero-title {
	color: #fff;
	font-size: clamp(2.2rem, 1.4rem + 3.1vw, 3.9rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
	margin: 0 0 1.1rem;
	max-width: 15ch;
	text-wrap: balance;
}
.tf-hero-text { color: rgba(255, 255, 255, 0.82); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); max-width: 46ch; margin: 0 0 1.75rem; }
.tf-hero-search { margin-bottom: 1.5rem; max-width: 34rem; }
.tf-hero-search form { background: #fff; border-radius: 999px; padding: 0.35rem; display: flex; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.tf-hero-search input[type="search"],
.tf-hero-search .search-field {
	flex: 1;
	border: 0 !important;
	background: transparent !important;
	min-height: 48px;
	padding-inline: 1.15rem;
	font-size: 1rem;
	box-shadow: none !important;
	border-radius: 999px;
}
.tf-hero-search input[type="search"]:focus { outline: none; }
.tf-hero-search form:focus-within { box-shadow: 0 0 0 3px var(--ll-accent), 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.tf-hero-search button,
.tf-hero-search .button { border-radius: 999px; background: var(--ll-ink); color: #fff; border-color: var(--ll-ink); min-height: 48px; padding-inline: 1.3rem; }
.tf-hero-search label:not(.screen-reader-text) { display: none; }
.tf-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.tf-hero-link { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.3); padding-bottom: 2px; }
.tf-hero-link:hover { border-bottom-color: var(--ll-accent); color: #fff; }
.tf-hero-link:focus-visible { outline: 2px solid var(--ll-accent); outline-offset: 4px; }

/* Shelf doors */
.tf-doors { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(1rem, 2.4vw, 1.75rem); }
.tf-door {
	--door: var(--tf-tech);
	--door-deep: var(--tf-tech-deep);
	--door-soft: var(--tf-tech-soft);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	min-height: 210px;
	padding: clamp(1.25rem, 2.6vw, 2rem);
	border-radius: var(--tf-panel-radius);
	background: var(--door-soft);
	color: var(--ll-ink);
	text-decoration: none;
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--door) 18%, transparent);
	transition: transform 0.25s var(--ll-ease), box-shadow 0.25s var(--ll-ease);
}
.tf-door--life { --door: var(--tf-life); --door-deep: var(--tf-life-deep); --door-soft: var(--tf-life-soft); }
.tf-door:hover { transform: translateY(-3px); box-shadow: var(--tf-shadow-lift); color: var(--ll-ink); }
.tf-door:focus-visible { outline: 3px solid var(--door); outline-offset: 3px; }
.tf-door-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; position: relative; z-index: 1; }
.tf-door-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--door); color: #fff; margin-bottom: 0.4rem; }
.tf-door-name { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; color: var(--door-deep); }
.tf-door-blurb { font-size: 0.95rem; color: var(--ll-muted); max-width: 30ch; }
.tf-door-count { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem; font-weight: 700; font-size: 0.95rem; color: #fff; background: var(--door); padding: 0.5rem 0.95rem; border-radius: 999px; }
.tf-door-count .icon { transition: transform 0.2s var(--ll-ease); }
.tf-door:hover .tf-door-count .icon { transform: translateX(3px); }
.tf-door-covers { position: relative; width: 170px; height: 170px; flex: none; }
.tf-door-covers .tf-door-cover {
	position: absolute;
	bottom: 0;
	width: 104px;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 5px;
	box-shadow: var(--ll-shadow-cover);
	transition: transform 0.3s var(--ll-ease);
}
.tf-door-covers .tf-door-cover:nth-child(1) { right: 0; z-index: 3; transform: rotate(4deg); }
.tf-door-covers .tf-door-cover:nth-child(2) { right: 34px; z-index: 2; transform: rotate(-3deg) translateY(-6px); }
.tf-door-covers .tf-door-cover:nth-child(3) { right: 66px; z-index: 1; transform: rotate(-9deg) translateY(-2px); }
.tf-door:hover .tf-door-cover:nth-child(1) { transform: rotate(7deg) translateX(6px); }
.tf-door:hover .tf-door-cover:nth-child(3) { transform: rotate(-13deg) translateX(-6px); }

/* 4. Sections -------------------------------------------------------------- */
.home-section + .home-section { border-top: 0; }
.home-section { padding-block: clamp(1.75rem, 3.5vw, 3rem); }
.section-heading { margin-bottom: 1.5rem; }

/* 5. Shelves tabs ---------------------------------------------------------- */
.tf-shelves-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.tf-tablist { display: inline-flex; gap: 0.25rem; padding: 0.3rem; background: #fff; border: 1px solid var(--ll-rule); border-radius: 999px; box-shadow: var(--tf-shadow-card); }
.tf-tablist[hidden] { display: none; }
.tf-tab {
	appearance: none;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 650;
	font-size: 0.95rem;
	color: var(--ll-muted);
	padding: 0.55rem 1.15rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.tf-tab:hover { color: var(--ll-ink); background: #f1f3f8; }
.tf-tab:focus-visible { outline: 2px solid var(--ll-ink); outline-offset: 2px; }
.tf-tab[aria-selected="true"] { background: var(--ll-ink); color: #fff; }
.tf-tab--tech[aria-selected="true"] { background: var(--tf-tech); }
.tf-tab--life[aria-selected="true"] { background: var(--tf-life); }
.tf-panel + .tf-panel { margin-top: 2.5rem; }
.tf-tabs-ready .tf-panel + .tf-panel { margin-top: 0; }
.tf-panel[hidden] { display: none; }
.tf-panel-title { font-size: 1.15rem; margin: 0 0 1rem; }
.tf-tabs-ready .tf-panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tf-panel-more { margin: 1.25rem 0 0; }
.tf-more-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--ll-ink); text-decoration: none; }
.tf-more-link:hover { color: var(--ll-ink); text-decoration: underline; text-decoration-color: var(--ll-accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* 6. Topics ---------------------------------------------------------------- */
.tf-topics .section-title { margin-bottom: 1.5rem; }
.tf-topic-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.5rem; }
.tf-topic-group { --shelf: var(--ll-ink); --shelf-soft: #eef0f5; background: #fff; border: 1px solid var(--ll-rule); border-radius: var(--tf-panel-radius); padding: 1.25rem; }
.tf-topic-group--tech { --shelf: var(--tf-tech); --shelf-soft: var(--tf-tech-soft); }
.tf-topic-group--life { --shelf: var(--tf-life); --shelf-soft: var(--tf-life-soft); }
.tf-topic-shelf { margin: 0 0 0.9rem; font-size: 1.15rem; }
.tf-topic-shelf a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--shelf); text-decoration: none; }
.tf-topic-shelf a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tf-topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 0.6rem; }
.tf-topic {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 0.75rem;
	align-items: center;
	padding: 0.75rem;
	border-radius: 12px;
	text-decoration: none;
	color: var(--ll-ink);
	background: #f7f8fb;
	border: 1px solid transparent;
	transition: background-color 0.2s, border-color 0.2s;
	height: 100%;
}
.tf-topic:hover { background: var(--shelf-soft); border-color: color-mix(in srgb, var(--shelf) 30%, transparent); color: var(--ll-ink); }
.tf-topic:focus-visible { outline: 2px solid var(--shelf); outline-offset: 2px; }
.tf-topic-icon .icon { stroke-width: 1.9; }
.tf-topic-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--shelf-soft); color: var(--shelf); }
.tf-topic:hover .tf-topic-icon { background: var(--shelf); color: #fff; }
.tf-topic-name { font-weight: 650; font-size: 0.95rem; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.tf-topic-count { font-size: 0.8125rem; color: var(--ll-muted); }

/* 7. Product cards --------------------------------------------------------- */
.book-card,
ul.products li.product.book-card {
	--shelf: var(--ll-ink);
	--shelf-soft: #eef0f5;
	background: #fff;
	border: 1px solid var(--ll-rule);
	border-radius: var(--tf-card-radius);
	padding: 0.85rem 0.85rem 0.9rem !important;
	box-shadow: var(--tf-shadow-card);
	transition: box-shadow 0.25s var(--ll-ease), border-color 0.25s var(--ll-ease);
}
.book-card.tf-card--tech,
ul.products li.product.tf-card--tech { --shelf: var(--tf-tech); --shelf-soft: var(--tf-tech-soft); }
.book-card.tf-card--life,
ul.products li.product.tf-card--life { --shelf: var(--tf-life); --shelf-soft: var(--tf-life-soft); }
.book-card:hover { box-shadow: var(--tf-shadow-lift); border-color: color-mix(in srgb, var(--shelf) 35%, var(--ll-rule)); }
.book-card-cover { margin-bottom: 0.85rem; border-radius: 8px; background: var(--shelf-soft); padding: 0.9rem 1.1rem; }
.book-card .book-cover-img { border-radius: 4px; }
.book-card-title a::after { display: none; } /* The cover is its own link; keep the chip clickable. */
.woocommerce ul.products li.product .book-card-title,
.book-card-title { font-family: var(--ll-font-body); font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.2rem; }
.tf-chip {
	align-self: flex-start;
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.75rem;
	font-weight: 650;
	line-height: 1;
	color: var(--shelf);
	background: var(--shelf-soft);
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
	text-decoration: none;
	margin-bottom: 0.55rem;
	position: relative;
	z-index: 1;
}
.tf-chip:hover { color: #fff; background: var(--shelf); }
.book-card-author { font-size: 0.85rem; margin-bottom: 0.6rem; }
.book-card-author a { color: inherit; }
.woocommerce ul.products li.product .price,
.book-card .price { font-size: 1.1rem; font-weight: 750; }
.book-card-formats { font-weight: 600; letter-spacing: 0.02em; background: #f1f3f8; padding: 0.15rem 0.45rem; border-radius: 6px; }
.book-card-actions { margin-top: 0.75rem; }
.woocommerce ul.products li.product .button,
.book-card-actions .button {
	border-radius: 999px;
	background: var(--ll-ink);
	border-color: var(--ll-ink);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 650;
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.woocommerce ul.products li.product .button:hover { background: var(--ll-accent); border-color: var(--ll-accent); color: var(--ll-on-accent); }
.book-card-actions .wishlist-toggle,
.book-card-actions [data-wishlist-toggle],
.book-card-actions button:not(.button) { border-radius: 999px; }

/* Badges */
.book-card-badges { top: 0.5rem; left: 0.5rem; }
.badge,
.badge-sale,
.badge-free { border-radius: 999px; font-weight: 750; font-size: 0.75rem; padding: 0.3rem 0.65rem; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.35); }
.badge-free { background: var(--tf-life); color: #fff; }
.badge-sale,
.book-card-badges .onsale { background: var(--ll-accent); color: var(--ll-on-accent); }

/* Product rails: five cards on wide screens */
.product-rail ul.products { gap: 1.25rem; grid-auto-columns: calc((100% - 4 * 1.25rem) / 5); padding: 6px 6px var(--ll-space-4); margin: -6px -6px 0; }
.woocommerce ul.products,
ul.products { gap: 1.5rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tf-price-free { color: var(--tf-life-deep); font-weight: 800; }

/* 8. Trust, FAQ, offers ---------------------------------------------------- */
.home-section--trust .ll-container { position: relative; isolation: isolate; padding-block: clamp(1.5rem, 3vw, 2.5rem); padding-inline: calc(var(--ll-gutter) + clamp(1.25rem, 3vw, 2.5rem)); }
.home-section--trust .ll-container::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0 var(--ll-gutter);
	background: #fff;
	border: 1px solid var(--ll-rule);
	border-radius: var(--tf-panel-radius);
}
.trust-list li { border-top: 0 !important; padding-top: 0 !important; }
.trust-list .icon { width: 46px; height: 46px; padding: 11px; border-radius: 13px; background: var(--tf-ember-soft); color: #c2540a; margin-bottom: 0.75rem; box-sizing: border-box; }
.trust-list h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }

.home-section--faq .ll-container--narrow { max-width: calc(var(--ll-container) + var(--ll-gutter) * 2); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 2rem; align-items: start; }
.faq-list { display: grid; gap: 0.6rem; border-top: 0; }
.home-section--faq .section-title { position: sticky; top: calc(var(--ll-header-h) + 1.5rem); }
.faq-list details { background: #fff; border: 1px solid var(--ll-rule) !important; border-radius: 14px; padding: 0 1.15rem; transition: box-shadow 0.2s; }
.faq-list details[open] { box-shadow: var(--tf-shadow-card); }
.faq-list summary { font-weight: 650; padding-block: 1rem; }
.faq-list .faq-answer { padding-bottom: 1rem; color: var(--ll-muted); }
.faq-list .faq-answer p { margin: 0; }

.offers-panel { border-radius: var(--tf-panel-radius); background: linear-gradient(135deg, #1b2540 0%, #172033 60%); }
.offers-panel ul.products li.product.book-card { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.offers-panel .book-card-cover { background: rgba(255, 255, 255, 0.08); }
.offers-panel .book-card-formats { background: rgba(255, 255, 255, 0.12); }
.offers-panel ul.products li.product .button { background: var(--ll-accent); border-color: var(--ll-accent); color: var(--ll-on-accent); }
.offers-panel ul.products li.product .button:hover { background: #fff; border-color: #fff; color: var(--ll-ink); }

.reading-list { border-radius: var(--tf-panel-radius); border-color: var(--ll-rule); }
.review-card { border-radius: var(--tf-panel-radius); }
.newsletter-panel { border-radius: var(--tf-panel-radius); }

/* 9. Catalog pages --------------------------------------------------------- */
.woocommerce-products-header { padding-block: 1.5rem 1.75rem; }
.tax-product_cat.term-tech .woocommerce-products-header__title,
.tax-product_cat.term-tech .page-title { color: var(--tf-tech-deep); }
.tax-product_cat.term-non-tech .woocommerce-products-header__title,
.tax-product_cat.term-non-tech .page-title { color: var(--tf-life-deep); }
.woocommerce .woocommerce-ordering select,
.woocommerce-ordering select { border-radius: 999px; }
.single-product div.product .product_title { font-weight: 750; letter-spacing: -0.03em; }
.single-product div.product .single_add_to_cart_button,
.single-product .button.alt { border-radius: 999px; min-height: 52px; background: var(--ll-accent); border-color: var(--ll-accent); color: var(--ll-on-accent); font-weight: 700; }
.single-product div.product .single_add_to_cart_button:hover { background: var(--ll-accent-hover); border-color: var(--ll-accent-hover); }
.single-product .woocommerce-product-gallery img { border-radius: 8px; box-shadow: var(--tf-shadow-lift); }

/* 10. Footer --------------------------------------------------------------- */
.site-footer { margin-top: clamp(2rem, 5vw, 4rem); background: var(--ll-ink); position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--tf-tech) 0 50%, var(--tf-life) 50% 100%); }
.footer-heading { color: #fff; font-size: 0.95rem; }
.site-footer .footer-about { color: rgba(255, 255, 255, 0.72); }
.site-footer a:hover { color: var(--ll-accent); }

/* 11. Responsive ----------------------------------------------------------- */
@media (max-width: 1240px) {
	.product-rail ul.products { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); }
}
@media (max-width: 1000px) {
	.product-rail ul.products { grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); }
}
@media (max-width: 960px) {
	.tf-hero-grid { grid-template-columns: 1fr; }
	.tf-hero-title { max-width: 18ch; }
	.tf-doors { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.tf-door { grid-template-columns: 1fr; min-height: 0; align-items: start; }
	.tf-door-covers { display: none; }
	.home-section--faq .ll-container--narrow { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 760px) {
	.product-rail ul.products { grid-auto-columns: 62%; }
	.tf-shelves-head { flex-direction: column; align-items: flex-start; }
	.tf-tablist { width: 100%; }
	.tf-tab { flex: 1; padding-inline: 0.5rem; }
}
@media (max-width: 520px) {
	.tf-hero-intro { border-radius: 18px; }
	.tf-doors { grid-template-columns: 1fr; }
	.tf-door { grid-template-columns: auto 1fr; padding: 1rem 1.1rem; }
	.tf-door-body { display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; align-items: center; }
	.tf-door-icon { grid-row: 1 / 4; margin: 0; align-self: start; }
	.tf-door-name { font-size: 1.5rem; }
	.tf-door-count { justify-self: start; }
	.tf-hero-search form { flex-wrap: nowrap; }
	.tf-hero-search button .search-label,
	.tf-hero-search button span:not(.screen-reader-text) { display: none; }
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
	.book-card, ul.products li.product.book-card { padding: 0.6rem !important; }
	.book-card-cover { padding: 0.6rem 0.7rem; }
	.tf-topic-list { grid-template-columns: 1fr 1fr; }
	.tf-topic { grid-template-columns: 1fr; row-gap: 0.4rem; }
	.tf-topic-icon { grid-row: auto; }
}

/* 12. Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.tf-door, .tf-door-cover, .tf-door-count .icon, .book-card, .tf-topic, .tf-tab { transition: none !important; }
	.tf-door:hover { transform: none; }
}

/* Single product: gallery tinted by shelf. */
.single-product div.product { position: relative; }
.single-product div.product > .badge { display: none; } /* The struck-through price already shows the sale. */
.single-product div.product .woocommerce-product-gallery { background: #eef0f5; border-radius: var(--tf-panel-radius); padding: clamp(1rem, 3vw, 2.25rem); }
.single-product div.product.product_cat-tech .woocommerce-product-gallery { background: var(--tf-tech-soft); }
.single-product div.product.product_cat-non-tech .woocommerce-product-gallery { background: var(--tf-life-soft); }
.single-product .woocommerce-product-gallery__wrapper { max-width: 380px; margin-inline: auto; }
.single-product div.product .woocommerce-product-gallery { align-self: start; }
.single-product div.product form.cart .button,
.single-product div.product .leafline-buy-now,
.single-product div.product [class*="buy-now"] { border-radius: 999px; min-height: 52px; }
