:root {
	--bg-primary: #FAF8F5;
	--bg-secondary: #F2EFE9;
	--accent-primary: #5C7A67;
	--accent-cta: #C87D55;
	--text-main: #2C2C2C;
	--text-muted: #6E6A63;
	--radius: 12px;
	--shadow: 0 4px 20px rgba(44, 44, 44, 0.05);
	--font-body: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
	--font-head: 'Lora', Georgia, serif;

	/* Astra overrides */
	--ast-global-color-0: #5C7A67;
	--ast-global-color-1: #C87D55;
	--ast-global-color-2: #2C2C2C;
	--ast-global-color-3: #6E6A63;
	--ast-global-color-4: #FAF8F5;
	--ast-global-color-5: #F2EFE9;
	--ast-global-color-6: #FFFFFF;
	--ast-global-color-7: #2C2C2C;
	--ast-global-color-8: #2C2C2C;
}

body, button, input, select, textarea {
	font-family: var(--font-body);
	color: var(--text-main);
}
body, .ast-separate-container, .site-content { background-color: var(--bg-primary); }
h1, h2, h3, h4, h5, h6, .entry-title, .site-title { font-family: var(--font-head); color: var(--text-main); }
a { color: var(--accent-primary); }
a:hover { color: var(--accent-cta); }

.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single,
.woocommerce ul.products li.product, .woocommerce div.product {
	border-radius: var(--radius);
}
.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single {
	background: #fff; box-shadow: var(--shadow);
}
.woocommerce ul.products li.product img, img { border-radius: var(--radius); }

/* Buttons */
.tnv-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce button.button.alt,
.woocommerce #respond input#submit, .wp-block-button__link, .ast-button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 20px; border-radius: var(--radius);
	font-family: var(--font-body); font-weight: 600; font-size: 15px; text-decoration: none;
	border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.woocommerce button.button.alt, .woocommerce a.button.alt, .single_add_to_cart_button, .tnv-btn--primary {
	background: var(--accent-cta) !important; color: #fff !important;
}
.tnv-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.tnv-btn--zalo { background: var(--accent-primary); color: #fff; }
.tnv-btn--messenger { background: var(--bg-secondary); color: var(--accent-primary); border: 1px solid var(--accent-primary); }
.tnv-btn--zalo:hover { color: #fff; }

/* Consult */
.tnv-consult { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.tnv-consult .tnv-btn { flex: 1 1 140px; }
.tnv-sticky-bar { display: none; }

/* Accordion */
.tnv-accordion { margin: 18px 0; border: 1px solid var(--bg-secondary); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.tnv-accordion__item + .tnv-accordion__item { border-top: 1px solid var(--bg-secondary); }
.tnv-accordion__trigger {
	width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
	min-height: 52px; padding: 12px 16px; background: transparent !important; color: var(--text-main) !important;
	font-family: var(--font-body); font-weight: 600; font-size: 15px; text-align: left; border: 0; cursor: pointer; border-radius: 0;
}
.tnv-accordion__icon { width: 10px; height: 10px; border-right: 2px solid var(--accent-primary); border-bottom: 2px solid var(--accent-primary); transform: rotate(45deg); transition: transform .25s ease; flex: none; }
.tnv-accordion__trigger[aria-expanded="true"] .tnv-accordion__icon { transform: rotate(-135deg); }
.tnv-accordion__panel { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.tnv-accordion__panel:not([hidden]) { display: block; }
.tnv-accordion__inner { padding: 0 16px 14px; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }

/* Grids & cards */
.tnv-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 20px 0; }
.tnv-grid--posts { grid-template-columns: 1fr; }
.tnv-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.tnv-card__thumb img { width: 100%; height: auto; display: block; border-radius: 0; aspect-ratio: 1; object-fit: cover; background: var(--bg-secondary); }
.tnv-card__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tnv-card__title { font-size: 16px; line-height: 1.35; margin: 0; }
.tnv-card__title a { color: var(--text-main); text-decoration: none; }
.tnv-card__price { color: var(--accent-cta); font-weight: 600; }
.tnv-card__actions { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.tnv-card__actions .tnv-btn { min-height: 44px; padding: 0 12px; font-size: 14px; }
.tnv-card__cat { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-primary); font-weight: 600; }
.tnv-card__excerpt { color: var(--text-muted); font-size: 14px; margin: 0; }
.tnv-link { font-weight: 600; text-decoration: none; }

/* Upsell */
.tnv-upsell { margin-top: 40px; padding: 20px 16px; background: var(--bg-secondary); border-radius: var(--radius); }
.tnv-upsell__title { margin-top: 0; font-size: 20px; }

/* Home sections */
.tnv-hero { background: var(--bg-secondary); border-radius: var(--radius); padding: 40px 20px; text-align: center; margin-bottom: 32px; }
.tnv-hero h1 { font-size: 30px; margin-bottom: 12px; }
.tnv-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto 20px; }
.tnv-section { margin: 40px 0; }
.tnv-section > h2 { text-align: center; margin-bottom: 8px; }
.tnv-section > .tnv-sub { text-align: center; color: var(--text-muted); margin-bottom: 20px; }
.tnv-promises { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 0; list-style: none; }
.tnv-promises li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }

@media (max-width: 480px) {
	body.single-product { padding-bottom: 80px; }
	.single_add_to_cart_button { width: 100%; min-height: 52px; }
	.tnv-consult--inline { display: none; }
	.tnv-sticky-bar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg-primary);
		box-shadow: 0 -4px 20px rgba(44, 44, 44, 0.08);
	}
	.tnv-sticky-bar .tnv-consult { margin: 0; flex-wrap: nowrap; }
}
@media (min-width: 481px) { .tnv-consult--inline { display: flex; } }
@media (min-width: 768px) {
	.tnv-grid--products { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.tnv-grid--posts { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.tnv-card__actions { flex-direction: row; }
	.tnv-promises { grid-template-columns: repeat(3, 1fr); }
	.tnv-hero { padding: 64px 40px; } .tnv-hero h1 { font-size: 40px; }
}
