/*
Theme Name: TruePeptide Store
Text Domain: truepeptide-store
Description: Modern, conversion-focused WooCommerce theme for a small peptide webstore, with color options in the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* Colors are set in Appearance → Customize → Store Colors and injected as
   CSS variables on :root. The values below are fallbacks only. */
:root {
	--tp-primary: #ff5a1f;
	--tp-accent: #22d3b6;
	--tp-dark: #0a1020;
	--tp-dark-text: #eaf0ff;
	--tp-light: #f4f6fb;
	--tp-text: #0f172a;
	--tp-sale: #e11d48;
	--tp-surface: color-mix(in srgb, var(--tp-dark) 88%, white);
	--tp-line-dark: color-mix(in srgb, var(--tp-dark-text) 14%, transparent);
	--tp-line: color-mix(in srgb, var(--tp-text) 12%, transparent);
	--tp-muted: color-mix(in srgb, var(--tp-text) 62%, white);
	--tp-muted-dark: color-mix(in srgb, var(--tp-dark-text) 68%, var(--tp-dark));
	--tp-primary-hover: color-mix(in srgb, var(--tp-primary) 86%, black);
	--tp-radius: 14px;
	--tp-font-head: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
	--tp-font-body: 'Manrope', 'Segoe UI', sans-serif;
	--tp-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--tp-font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--tp-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--tp-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tp-primary-hover); }
h1, h2, h3, h4 { font-family: var(--tp-font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.tp-container { width: 100%; max-width: var(--tp-max); margin: 0 auto; padding: 0 24px; }
main { flex: 1; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.tp-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wp-block-button__link, .button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font: 700 15px/1 var(--tp-font-body);
	background: var(--tp-primary); color: #fff;
	border: 0; border-radius: 999px;
	padding: 15px 28px; cursor: pointer;
	box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--tp-primary) 70%, transparent);
	transition: transform .2s, box-shadow .2s, background .2s;
}
.tp-btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .button:hover {
	background: var(--tp-primary-hover); color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--tp-primary) 80%, transparent);
}
.tp-btn--ghost { background: transparent; color: var(--tp-dark-text); border: 1.5px solid var(--tp-line-dark); box-shadow: none; }
.tp-btn--ghost:hover { background: color-mix(in srgb, var(--tp-dark-text) 8%, transparent); color: var(--tp-dark-text); box-shadow: none; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; }

/* ── Announcement bar ────────────────────────────────────────────────────── */
.tp-announce { background: var(--tp-primary); color: #fff; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 9px 16px; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.tp-header { background: color-mix(in srgb, var(--tp-dark) 92%, transparent); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--tp-line-dark); }
.admin-bar .tp-header { top: 32px; }
.tp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.tp-brand { display: flex; align-items: center; gap: 10px; font: 800 1.35rem var(--tp-font-head); letter-spacing: -.03em; color: var(--tp-dark-text); }
.tp-brand:hover { color: var(--tp-dark-text); }
.tp-brand svg { color: var(--tp-accent); flex: none; }
.tp-brand .custom-logo { max-height: 44px; width: auto; }
.tp-nav { display: flex; align-items: center; gap: 30px; }
.tp-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.tp-nav a { color: var(--tp-muted-dark); font-weight: 600; font-size: 15px; }
.tp-nav a:hover, .tp-nav .current-menu-item > a { color: var(--tp-dark-text); }
.tp-actions { display: flex; align-items: center; gap: 8px; }
.tp-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--tp-dark-text); background: none; border: 0; cursor: pointer; }
.tp-icon-btn:hover { background: color-mix(in srgb, var(--tp-dark-text) 10%, transparent); color: var(--tp-dark-text); }
.tp-cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--tp-primary); color: #fff; font: 700 11px/20px var(--tp-font-body); text-align: center; }
.tp-cart-count[data-count="0"] { display: none; }
.tp-burger { display: none; }
@media (max-width: 860px) {
	.tp-burger { display: inline-flex; }
	.tp-nav { display: none; position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px 24px; background: var(--tp-dark); border-bottom: 1px solid var(--tp-line-dark); }
	.tp-nav ul { flex-direction: column; gap: 0; width: 100%; }
	.tp-nav a { display: block; padding: 14px 0; font-size: 17px; }
}
@media (max-width: 860px) { .tp-nav.is-open { display: flex; } }
@media (max-width: 782px) { .admin-bar .tp-header { top: 46px; } }
[x-cloak] { display: none !important; }

/* ── Motion & effects ────────────────────────────────────────────────────── */
.tp-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Floating glow blobs in the hero. */
.tp-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.tp-orb--a { width: 380px; height: 380px; top: -80px; right: 6%; background: var(--tp-accent); animation: tp-drift-a 16s ease-in-out infinite; }
.tp-orb--b { width: 320px; height: 320px; bottom: -120px; left: 2%; background: var(--tp-primary); opacity: .4; animation: tp-drift-b 19s ease-in-out infinite; }
@keyframes tp-drift-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,50px) scale(1.15); } }
@keyframes tp-drift-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,-40px) scale(1.2); } }

/* Molecule: orbiting dots + pulsing core. */
.tp-orbit { transform-origin: 200px 190px; }
.tp-orbit--a { animation: tp-spin 14s linear infinite; }
.tp-orbit--b { animation: tp-spin 20s linear infinite reverse; }
@keyframes tp-spin { to { transform: rotate(360deg); } }
.tp-core { transform-origin: 200px 190px; animation: tp-pulse 3.2s ease-in-out infinite; }
@keyframes tp-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.tp-atoms circle { animation: tp-blink 4s ease-in-out infinite; }
.tp-atoms circle:nth-child(2n) { animation-delay: -1.3s; }
.tp-atoms circle:nth-child(3n) { animation-delay: -2.6s; }
@keyframes tp-blink { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* Floating Retatrutide vial in the hero. The link follows the mouse a little
   (--px/--py set by fx.js); the image floats and tilts on its own. */
.tp-hero__art { position: relative; }
.tp-molecule { opacity: .6; }
.tp-hero-vial {
	position: absolute; z-index: 2; left: 50%; top: 50%; width: 40%;
	transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
	transition: transform .35s ease-out;
}
.tp-hero-vial img {
	display: block; width: 100%; height: auto;
	filter: drop-shadow(0 34px 36px rgba(0,0,0,.55)) drop-shadow(0 0 40px color-mix(in srgb, var(--tp-accent) 35%, transparent));
	animation: tp-vial-float 6.5s ease-in-out infinite;
	transform-origin: 50% 90%;
}
.tp-hero-vial::after {
	content: ""; position: absolute; left: 12%; right: 12%; bottom: -7%; height: 7%;
	border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(14px);
	animation: tp-vial-shadow 6.5s ease-in-out infinite;
}
@keyframes tp-vial-float {
	0%,100% { transform: translateY(0) rotate(-3deg); }
	50%     { transform: translateY(-22px) rotate(3deg); }
}
@keyframes tp-vial-shadow {
	0%,100% { transform: scale(1); opacity: .65; }
	50%     { transform: scale(.72); opacity: .35; }
}
@media (max-width: 860px) { .tp-hero-vial { width: 46%; } }
@media (prefers-reduced-motion: reduce) { .tp-hero-vial img, .tp-hero-vial::after { animation: none; } }

/* Eyebrow dot pulse. */
.tp-eyebrow::before { animation: tp-ping 2.2s ease-out infinite; }
@keyframes tp-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tp-accent) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* Scrolling ticker under the hero. */
.tp-ticker { background: var(--tp-dark); border-top: 1px solid var(--tp-line-dark); overflow: hidden; white-space: nowrap; padding: 15px 0; }
.tp-ticker__track { display: inline-flex; align-items: center; gap: 28px; animation: tp-marquee 42s linear infinite; will-change: transform; }
.tp-ticker:hover .tp-ticker__track { animation-play-state: paused; }
.tp-ticker span { font: 700 12px/1 var(--tp-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--tp-muted-dark); }
.tp-ticker i { width: 7px; height: 7px; background: var(--tp-accent); transform: rotate(45deg); flex: none; }
@keyframes tp-marquee { to { transform: translateX(-50%); } }

/* Button shine sweep. */
.tp-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { position: relative; overflow: hidden; }
.tp-btn::after, .woocommerce a.button::after, .woocommerce button.button::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
	background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
	transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.tp-btn:hover::after, .woocommerce a.button:hover::after, .woocommerce button.button:hover::after { left: 130%; }

/* Product cards: glowing border on hover. */
.woocommerce ul.products li.product::before {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
	background: linear-gradient(135deg, var(--tp-primary), var(--tp-accent));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity .3s;
}
.woocommerce ul.products li.product:hover::before { opacity: 1; }
.woocommerce ul.products li.product a img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.woocommerce ul.products li.product:hover a img { transform: scale(1.05) rotate(-1deg); }

/* Feature cards: slow gradient glow. */
.tp-feature { position: relative; overflow: hidden; }
.tp-feature::after { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tp-accent) 30%, transparent), transparent); opacity: 0; transition: opacity .4s; }
.tp-feature:hover::after { opacity: 1; }

/* CTA banner: moving gradient. */
.tp-cta { background-size: 220% 220%; animation: tp-gradient 14s ease-in-out infinite; }
@keyframes tp-gradient { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ── Blog ────────────────────────────────────────────────────────────────── */
.tp-pagehero { position: relative; overflow: hidden; isolation: isolate; background: var(--tp-dark); color: var(--tp-dark-text); padding: 84px 0 76px; text-align: center; }
.tp-pagehero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 320px at 80% 0%, color-mix(in srgb, var(--tp-accent) 24%, transparent), transparent 70%), radial-gradient(460px 320px at 8% 100%, color-mix(in srgb, var(--tp-primary) 20%, transparent), transparent 70%); }
.tp-pagehero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: linear-gradient(var(--tp-line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--tp-line-dark) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 75%); }
.tp-pagehero h1 { color: #fff; max-width: 20ch; margin: 0 auto 14px; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.tp-pagehero .lead { color: var(--tp-muted-dark); max-width: 56ch; margin: 0 auto; font-size: 1.1rem; }
.tp-pagehero a.tp-eyebrow:hover { color: var(--tp-accent); }
.tp-pagehero--post h1 { max-width: 26ch; }
.tp-postmeta { display: inline-flex; gap: 10px; color: var(--tp-muted-dark); font-size: 14px; margin: 6px 0 0; }

.tp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tp-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(10,16,32,.35); border-color: color-mix(in srgb, var(--tp-primary) 40%, transparent); }
.tp-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tp-dark); }
.tp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tp-card:hover .tp-card__media img { transform: scale(1.06); }
.tp-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tp-accent); background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--tp-accent) 25%, transparent), transparent 60%), var(--tp-dark); }
.tp-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.tp-card__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--tp-muted); margin: 0 0 12px; }
.tp-card__cat { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-primary); }
.tp-card__title { font-size: 1.3rem; margin: 0 0 10px; }
.tp-card__title a { color: var(--tp-text); }
.tp-card__title a:hover { color: var(--tp-primary); }
.tp-card__excerpt { color: var(--tp-muted); font-size: 15px; margin: 0 0 18px; }
.tp-card__more { margin-top: auto; font-weight: 700; font-size: 14px; }
.tp-empty { text-align: center; color: var(--tp-muted); padding: 40px 0; }
@media (max-width: 1000px) { .tp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tp-cards { grid-template-columns: 1fr; } .tp-pagehero { padding: 60px 0 52px; } }

.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--tp-line); color: var(--tp-text); font-weight: 700; }
.nav-links .page-numbers:hover { border-color: var(--tp-primary); color: var(--tp-primary); }
.nav-links .page-numbers.current { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }

.tp-article .tp-container { max-width: 820px; }
.tp-article__hero { margin: 0 0 40px; border-radius: var(--tp-radius); overflow: hidden; }
.tp-article__hero img { display: block; width: 100%; height: auto; }
.tp-article .tp-prose { font-size: 1.08rem; line-height: 1.8; max-width: none; }
.tp-article .tp-prose img { border-radius: 12px; }
.tp-article .tp-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--tp-primary); color: var(--tp-muted); font-size: 1.15em; }
.tp-postnav { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--tp-line); }
.tp-postnav a { display: block; max-width: 48%; font-weight: 700; color: var(--tp-text); }
.tp-postnav a:hover { color: var(--tp-primary); }
.tp-postnav small { display: block; font-weight: 600; color: var(--tp-muted); margin-bottom: 4px; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.tp-postnav__next { text-align: right; margin-left: auto; }
.tp-comments { margin-top: 56px; }
.tp-searchbox { max-width: 460px; margin: 0 auto 40px; }
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; }
.search-form .search-submit { background: var(--tp-primary); color: #fff; border: 0; border-radius: 999px; padding: 0 24px; font: 700 14px var(--tp-font-body); cursor: pointer; }

/* Scroll reveal (only when fx.js is running and motion is allowed). */
.tp-js .tp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.tp-js .tp-reveal.is-in { opacity: 1; transform: none; }
.tp-js .woocommerce ul.products li.product.tp-reveal.is-in { transition: opacity .8s, transform .25s, box-shadow .25s, border-color .25s; }

@media (prefers-reduced-motion: reduce) {
	.tp-orb, .tp-orbit, .tp-core, .tp-atoms circle, .tp-eyebrow::before, .tp-ticker__track, .tp-cta { animation: none !important; }
	.tp-particles { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.tp-hero { position: relative; overflow: hidden; background: var(--tp-dark); color: var(--tp-dark-text); padding: 96px 0 110px; isolation: isolate; }
.tp-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(600px 400px at 85% 20%, color-mix(in srgb, var(--tp-accent) 28%, transparent), transparent 70%),
		radial-gradient(500px 420px at 10% 100%, color-mix(in srgb, var(--tp-primary) 22%, transparent), transparent 70%);
}
.tp-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(var(--tp-line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--tp-line-dark) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.tp-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.tp-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--tp-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--tp-accent); background: color-mix(in srgb, var(--tp-accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tp-accent) 30%, transparent); padding: 9px 14px; border-radius: 999px; margin-bottom: 24px; }
.tp-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tp-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp-accent) 25%, transparent); }
.tp-hero h1 { color: #fff; margin-bottom: 20px; }
.tp-hero p.lead { font-size: 1.15rem; color: var(--tp-muted-dark); max-width: 54ch; margin-bottom: 34px; }
.tp-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.tp-hero__art { position: relative; aspect-ratio: 1; max-width: 440px; margin-left: auto; width: 100%; }
.tp-hero__art svg { width: 100%; height: 100%; animation: tp-float 9s ease-in-out infinite; }
@keyframes tp-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .tp-hero__art svg { animation: none; } }
.tp-hero__copy > * { animation: tp-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.tp-hero__copy > *:nth-child(2) { animation-delay: .08s; }
.tp-hero__copy > *:nth-child(3) { animation-delay: .16s; }
.tp-hero__copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes tp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
	.tp-hero { padding: 64px 0 72px; }
	.tp-hero__grid { grid-template-columns: 1fr; }
	.tp-hero__art { max-width: 260px; margin: 0 auto; order: -1; }
}

/* ── Trust bar ───────────────────────────────────────────────────────────── */
.tp-trust { background: var(--tp-surface); color: var(--tp-dark-text); border-top: 1px solid var(--tp-line-dark); }
.tp-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tp-trust__item { padding: 26px 20px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--tp-line-dark); }
.tp-trust__item:last-child { border-right: 0; }
.tp-trust__item svg { color: var(--tp-accent); flex: none; }
.tp-trust__item strong { display: block; font: 700 15px/1.2 var(--tp-font-head); }
.tp-trust__item span { font-size: 13px; color: var(--tp-muted-dark); }
@media (max-width: 860px) {
	.tp-trust__grid { grid-template-columns: 1fr 1fr; }
	.tp-trust__item:nth-child(2) { border-right: 0; }
	.tp-trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--tp-line-dark); }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.tp-section { padding: 96px 0; }
.tp-section--light { background: var(--tp-light); }
.tp-section--dark { background: var(--tp-dark); color: var(--tp-dark-text); }
.tp-section--dark h2, .tp-section--dark h3 { color: #fff; }
.tp-section__head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.tp-section__head p { color: var(--tp-muted); font-size: 1.05rem; }
.tp-section--dark .tp-section__head p { color: var(--tp-muted-dark); }
.tp-kicker { font: 700 12px/1 var(--tp-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--tp-primary); margin-bottom: 14px; display: block; }
@media (max-width: 700px) { .tp-section { padding: 64px 0; } }

/* ── Features ────────────────────────────────────────────────────────────── */
.tp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tp-feature { padding: 34px 30px; border-radius: var(--tp-radius); background: var(--tp-surface); border: 1px solid var(--tp-line-dark); transition: transform .25s, border-color .25s; }
.tp-feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tp-accent) 50%, transparent); }
.tp-feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--tp-accent) 14%, transparent); color: var(--tp-accent); margin-bottom: 22px; }
.tp-feature p { color: var(--tp-muted-dark); margin: 0; font-size: 15px; }
@media (max-width: 860px) { .tp-features { grid-template-columns: 1fr; } }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.tp-faq { max-width: 780px; margin: 0 auto; }
.tp-faq__item { border-bottom: 1px solid var(--tp-line); }
.tp-faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; padding: 22px 0; cursor: pointer; text-align: left; font: 700 1.05rem var(--tp-font-head); color: var(--tp-text); }
.tp-faq__q svg { flex: none; transition: transform .25s; color: var(--tp-primary); }
.tp-faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.tp-faq__a { padding: 0 0 22px; color: var(--tp-muted); max-width: 64ch; }

/* ── CTA banner ──────────────────────────────────────────────────────────── */
.tp-cta { background: linear-gradient(120deg, var(--tp-primary), color-mix(in srgb, var(--tp-primary) 60%, var(--tp-sale))); color: #fff; padding: 72px 0; text-align: center; }
.tp-cta h2 { color: #fff; margin-bottom: 12px; }
.tp-cta p { opacity: .92; margin-bottom: 28px; }
.tp-cta .tp-btn { background: #fff; color: var(--tp-primary); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.tp-cta .tp-btn:hover { background: var(--tp-dark); color: #fff; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.tp-footer { background: var(--tp-dark); color: var(--tp-muted-dark); padding: 64px 0 28px; font-size: 14px; }
.tp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--tp-line-dark); }
.tp-footer h4 { color: var(--tp-dark-text); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.tp-footer ul { list-style: none; margin: 0; padding: 0; }
.tp-footer li { margin-bottom: 10px; }
.tp-footer a { color: var(--tp-muted-dark); }
.tp-footer a:hover { color: var(--tp-dark-text); }
.tp-footer__disclaimer { margin: 28px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--tp-surface); border: 1px solid var(--tp-line-dark); font-size: 13px; }
.tp-footer__disclaimer strong { color: var(--tp-accent); }
.tp-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
@media (max-width: 860px) { .tp-footer__grid { grid-template-columns: 1fr; } }

/* ── Generic content pages ───────────────────────────────────────────────── */
.tp-page { padding: 64px 0 96px; }
.tp-page__title { margin-bottom: 32px; }
.tp-prose { max-width: 760px; }
.tp-prose--wide { max-width: none; }
.tp-prose h2, .tp-prose h3 { margin-top: 1.6em; }
.tp-prose ul, .tp-prose ol { padding-left: 1.3em; }
.tp-post { padding: 28px 0; border-bottom: 1px solid var(--tp-line); }
.tp-post h2 { font-size: 1.6rem; }
.tp-post h2 a { color: var(--tp-text); }
.tp-post h2 a:hover { color: var(--tp-primary); }

/* Scaffold templates (single, archive, search, 404) use these Tailwind-era
   utility class names; keep them readable with the store palette. */
.text-neutral { color: var(--tp-text); }
.text-secondary-500, .text-secondary-600 { color: var(--tp-muted); }

/* ── WooCommerce: shop + product grid ────────────────────────────────────── */
.tp-shop { padding: 56px 0 96px; }
.woocommerce-breadcrumb { font-size: 13px; color: var(--tp-muted); margin-bottom: 20px; }
.woocommerce-breadcrumb a { color: var(--tp-muted); }
.woocommerce-products-header__title, .tp-shop h1.page-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.woocommerce-result-count { color: var(--tp-muted); font-size: 14px; float: left; margin: 0 0 24px; }
.woocommerce-ordering { float: right; margin: 0 0 24px; }
.woocommerce-ordering select { font: 600 14px var(--tp-font-body); padding: 10px 14px; border: 1px solid var(--tp-line); border-radius: 999px; background: #fff; }

.woocommerce ul.products, ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; clear: both; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	position: relative; float: none !important; width: auto !important; margin: 0 !important;
	background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
	padding: 14px 14px 20px; display: flex; flex-direction: column; text-align: left;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(10,16,32,.35); border-color: color-mix(in srgb, var(--tp-primary) 40%, transparent); }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin: 0 0 16px; background: var(--tp-light); display: block; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 700 1.1rem var(--tp-font-head); padding: 0 6px; margin: 0 0 6px; color: var(--tp-text); }
.woocommerce ul.products li.product .price { display: block; padding: 0 6px; margin-bottom: 16px; font: 800 1.15rem var(--tp-font-head); color: var(--tp-text); }
.woocommerce ul.products li.product .price del { color: var(--tp-muted); font-weight: 500; font-size: .9em; opacity: .8; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--tp-primary); }
.woocommerce ul.products li.product .button { margin: auto 6px 0; padding: 13px 20px; font-size: 14px; width: calc(100% - 12px); }
.woocommerce ul.products li.product .added_to_cart { display: block; text-align: center; font-size: 13px; margin-top: 10px; }
.woocommerce span.onsale { position: absolute; top: 24px; left: 24px; right: auto; z-index: 2; margin: 0; min-width: 0; min-height: 0; padding: 7px 12px; line-height: 1; border-radius: 999px; background: var(--tp-sale); color: #fff; font: 700 12px var(--tp-font-body); letter-spacing: .04em; }
.star-rating { color: #f5a623; }
@media (max-width: 1000px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .woocommerce ul.products, ul.products { gap: 14px; } .woocommerce ul.products li.product { padding: 10px 10px 16px; } }

/* Home page product grid sits on a light background. */
.tp-section--light ul.products li.product { background: #fff; }

/* ── WooCommerce: single product ─────────────────────────────────────────── */
.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.single-product div.product .woocommerce-product-gallery { float: none !important; width: 100% !important; margin: 0; position: relative; }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--tp-radius); }
.single-product div.product .summary { float: none !important; width: 100% !important; }
.single-product div.product .product_title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.single-product div.product p.price, .single-product div.product span.price { font: 800 1.8rem var(--tp-font-head); color: var(--tp-text); margin: 6px 0 18px; display: block; }
.single-product div.product p.price ins { text-decoration: none; color: var(--tp-primary); }
.single-product div.product p.price del { font-size: .65em; color: var(--tp-muted); font-weight: 500; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--tp-muted); margin-bottom: 26px; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin-bottom: 26px; }
.woocommerce .quantity .qty { width: 84px; height: 100%; min-height: 50px; border: 1.5px solid var(--tp-line); border-radius: 999px; text-align: center; font: 700 16px var(--tp-font-body); }
.woocommerce div.product form.cart .button { padding: 16px 40px; font-size: 16px; flex: 1; min-width: 200px; }
.woocommerce div.product .product_meta { font-size: 13px; color: var(--tp-muted); border-top: 1px solid var(--tp-line); padding-top: 18px; display: grid; gap: 4px; }
.tp-report-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 14px/1 var(--tp-font-body); color: var(--tp-text); background: #fff; border: 1.5px solid var(--tp-line); border-radius: 999px; padding: 13px 22px; transition: border-color .2s, color .2s, transform .2s; }
.tp-report-btn:hover { color: var(--tp-primary); border-color: var(--tp-primary); transform: translateY(-1px); }
.tp-report-btn svg { color: var(--tp-accent); }
.tp-report-btn--single { margin: 0 0 24px; }
.woocommerce ul.products li.product .tp-report-btn--card { margin: 10px 6px 0; width: calc(100% - 12px); padding: 11px 16px; font-size: 13px; }
.tp-usp { list-style: none; margin: 0 0 24px; padding: 18px 20px; display: grid; gap: 10px; background: var(--tp-light); border-radius: 12px; font-size: 14px; font-weight: 600; }
.tp-usp li { display: flex; align-items: center; gap: 10px; }
.tp-usp svg { color: var(--tp-accent); flex: none; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 24px; display: flex; gap: 8px; border-bottom: 1px solid var(--tp-line); list-style: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 14px 18px; font-weight: 700; color: var(--tp-muted); display: block; border-bottom: 3px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--tp-text); border-bottom-color: var(--tp-primary); }
.woocommerce div.product .related > h2, .woocommerce div.product .upsells > h2 { margin: 40px 0 24px; }
@media (max-width: 860px) { .single-product div.product { grid-template-columns: 1fr; gap: 28px; } }

/* ── WooCommerce: cart, checkout, account, notices, forms ────────────────── */
.woocommerce table.shop_table { border: 1px solid var(--tp-line); border-radius: var(--tp-radius); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--tp-light); font-weight: 700; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--tp-line); padding: 16px; }
.woocommerce-cart table.cart img { width: 72px; border-radius: 8px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 100%; max-width: 440px; float: right; }
.woocommerce .cart-collaterals .cart_totals h2, #order_review_heading { font-size: 1.4rem; }
.woocommerce-checkout #payment { background: var(--tp-light); border-radius: var(--tp-radius); }
.woocommerce-checkout #payment div.payment_box { background: #fff; border-radius: 10px; color: var(--tp-text); }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--tp-line); padding: 20px; }
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order { width: 100%; padding: 18px; font-size: 17px; float: none; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-cart .coupon .input-text, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], textarea, select {
	font: 500 15px var(--tp-font-body); padding: 13px 16px; border: 1.5px solid var(--tp-line); border-radius: 10px; background: #fff; color: var(--tp-text); max-width: 100%;
}
.woocommerce form .form-row input.input-text:focus, textarea:focus, select:focus { outline: 0; border-color: var(--tp-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp-primary) 18%, transparent); }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 12px; border-top: 0; border-left: 4px solid var(--tp-accent); background: var(--tp-light); padding: 16px 20px 16px 52px; color: var(--tp-text); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--tp-accent); }
.woocommerce-error { border-left-color: var(--tp-sale); }
.woocommerce-error::before { color: var(--tp-sale); }
.woocommerce-message .button { float: right; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 16px; border-radius: 10px; font-weight: 600; color: var(--tp-text); }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--tp-light); color: var(--tp-primary); }
