/* ==========================================================================
   Teteleô Fios — estilos
   ========================================================================== */

:root {
	--tt-cream: #FCF6EF;
	--tt-sand: #F4EADB;
	--tt-sage: #E3E4C6;
	--tt-green: #2F3D13;
	--tt-green-hover: #44561F;
	--tt-ink: #2A2C22;
	--tt-muted: #5B5D4F;
	--tt-line: #D8CDBB;
	--tt-white: #FFFFFF;
	--tt-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
	--tt-sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--tt-radius: 14px;
	--tt-wrap: 1240px;
	--tt-gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--tt-cream);
	color: var(--tt-ink);
	font-family: var(--tt-sans);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tt-green); }
a:hover { color: var(--tt-green-hover); }
:focus-visible { outline: 3px solid var(--tt-green); outline-offset: 3px; border-radius: 4px; }

.tt-wrap { width: 100%; max-width: var(--tt-wrap); margin: 0 auto; padding: 0 var(--tt-gutter); }
.tt-ico { width: 24px; height: 24px; flex: none; }

.tt-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--tt-green); color: #fff; padding: 10px 16px; border-radius: 8px; }
.tt-skip:focus { left: 8px; color: #fff; }

/* ---------- Botões ---------- */

.tt-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 12px;
	background: var(--tt-green);
	color: #fff;
	font-family: var(--tt-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease;
}
.tt-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--tt-green-hover); color: #fff; }
.tt-btn .tt-ico-cart { width: 22px; height: 22px; }
.tt-btn .tt-ico-chevron { width: 18px; height: 18px; margin-left: 2px; }
.tt-btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; border-radius: 14px; }

.tt-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 22px;
	border: 1.5px solid var(--tt-ink);
	border-radius: 999px;
	color: var(--tt-ink);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.tt-btn-ghost:hover { background: var(--tt-green); border-color: var(--tt-green); color: #fff; }
.tt-btn-ghost .tt-ico { width: 18px; height: 18px; }

/* ---------- Cabeçalho ---------- */

.tt-header { position: relative; z-index: 20; background: var(--tt-cream); }
.tt-header-in { display: flex; align-items: center; gap: 32px; min-height: 96px; }
.tt-brand { flex: none; }
.tt-brand .custom-logo { max-height: 72px; width: auto; }

.tt-logo { display: inline-flex; align-items: center; gap: 16px; color: var(--tt-green); text-decoration: none; }
.tt-logo:hover { color: var(--tt-green); }
.tt-logo .tt-mark { width: 62px; height: 62px; }
.tt-logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tt-logo-name { font-family: var(--tt-serif); font-size: 34px; letter-spacing: .02em; text-transform: uppercase; color: var(--tt-ink); }
.tt-logo-sub { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: var(--tt-ink); padding-left: .5em; }
.tt-logo-sub::before,
.tt-logo-sub::after { content: ""; width: 34px; height: 1px; background: currentColor; }

.tt-nav { margin-left: auto; }
.tt-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.tt-menu a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--tt-ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.tt-menu a:hover { color: var(--tt-green-hover); text-decoration: underline; text-underline-offset: 5px; }
.tt-menu .tt-ico { width: 22px; height: 22px; color: var(--tt-green); }

.tt-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-left: 24px; color: var(--tt-green); }
.tt-cart .tt-ico { width: 28px; height: 28px; }
.tt-cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--tt-green); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

.tt-burger { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--tt-ink); cursor: pointer; }
.tt-burger .tt-ico { width: 28px; height: 28px; }

/* ---------- Topo (hero) ---------- */

.tt-hero { position: relative; overflow: hidden; background: var(--tt-cream); }
.tt-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; }
.tt-hero-media img {
	width: 100%; height: 100%; object-fit: cover; object-position: 30% center;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%);
	        mask-image: linear-gradient(to right, transparent 0%, #000 26%);
}
.tt-hero-in { position: relative; z-index: 2; display: flex; align-items: center; min-height: clamp(460px, 42vw, 600px); padding-top: 24px; padding-bottom: 48px; }
.tt-hero-copy { max-width: 640px; }
.tt-hero-leaves { position: absolute; left: -28px; top: 40px; width: 120px; height: 320px; color: #A9B08A; opacity: .7; z-index: 1; }

.tt-eyebrow { display: flex; align-items: center; gap: 18px; margin: 0 0 16px; color: var(--tt-green); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.tt-eyebrow::after { content: ""; flex: 0 1 110px; height: 1px; background: var(--tt-line); }

.tt-hero-title { margin: 0 0 22px; font-family: var(--tt-serif); font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.85rem); line-height: 1.04; letter-spacing: -.02em; color: var(--tt-green); }
.tt-hero-sub { margin: 0 0 22px; font-size: 19px; color: var(--tt-ink); }

.tt-price { margin: -6px 0 22px; font-size: 18px; color: var(--tt-ink); }
.tt-price del { color: var(--tt-muted); margin-right: 6px; font-size: 16px; }
.tt-price ins { text-decoration: none; font-weight: 700; font-size: 26px; color: var(--tt-green); }
.tt-price > .amount, .tt-price > .woocommerce-Price-amount { font-weight: 700; font-size: 26px; color: var(--tt-green); }

.tt-assure { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; font-size: 15px; color: var(--tt-ink); }
.tt-assure .tt-ico { width: 30px; height: 30px; color: var(--tt-green); }

/* ---------- Faixa de benefícios ---------- */

.tt-feats { background: var(--tt-sand); }
.tt-feats-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; padding-top: 24px; padding-bottom: 24px; list-style: none; }
.tt-feats-in li { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 20px; font-size: 16px; line-height: 1.3; }
.tt-feats-in li + li { border-left: 1px solid var(--tt-line); }
.tt-feats-in .tt-ico { width: 42px; height: 42px; color: var(--tt-green); stroke-width: 1.3; }

/* ---------- Qualidade e sustentabilidade ---------- */

.tt-about { padding: 40px 0 28px; }
.tt-about-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.tt-h2 { margin: 0 0 18px; font-family: var(--tt-serif); font-weight: 700; font-size: clamp(1.9rem, 2.9vw, 2.45rem); line-height: 1.1; letter-spacing: -.01em; color: var(--tt-green); }
.tt-text { margin: 0 0 24px; font-size: 18px; color: var(--tt-ink); max-width: 46ch; }
.tt-about-img { width: 100%; aspect-ratio: 1100 / 476; object-fit: cover; border-radius: var(--tt-radius); }

/* ---------- Inspirações ---------- */

.tt-insp { padding: 12px 0 36px; }
.tt-rule-title { display: flex; align-items: center; gap: 20px; margin: 0 0 22px; font-family: var(--tt-serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2rem); color: var(--tt-green); text-align: center; }
.tt-rule-title::before,
.tt-rule-title::after { content: ""; flex: 1; height: 1px; background: var(--tt-line); }
.tt-insp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tt-insp-grid img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 10px; }

/* ---------- Faixa final ---------- */

.tt-final { position: relative; overflow: hidden; background: var(--tt-sage); }
.tt-final-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 30px; padding-bottom: 30px; }
.tt-final-copy { display: flex; align-items: center; gap: 22px; padding-left: 48px; }
.tt-final-copy > .tt-ico { width: 52px; height: 52px; color: var(--tt-green); stroke-width: 1.3; }
.tt-final h2 { margin: 0 0 4px; font-family: var(--tt-sans); font-size: 20px; font-weight: 700; color: var(--tt-ink); }
.tt-final p { margin: 0; font-size: 15px; color: var(--tt-ink); }
.tt-final .tt-btn { margin-right: 48px; }
.tt-final-leaves-l,
.tt-final-leaves-r { position: absolute; width: 70px; height: 190px; color: #A9B08A; opacity: .8; }
.tt-final-leaves-l { left: 0; bottom: -40px; transform: rotate(-20deg); }
.tt-final-leaves-r { right: 0; bottom: -40px; transform: scaleX(-1) rotate(-20deg); }

/* ---------- Rodapé ---------- */

.tt-footer { background: var(--tt-cream); border-top: 1px solid var(--tt-line); }
.tt-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--tt-muted); }
.tt-footer-brand { display: flex; align-items: center; gap: 14px; color: var(--tt-green); }
.tt-footer-brand .tt-mark { width: 40px; height: 40px; }
.tt-footer-brand strong { color: var(--tt-ink); font-size: 15px; }
.tt-footer-brand p { margin: 2px 0 0; color: var(--tt-muted); }
.tt-footer-menu { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.tt-footer-menu a { color: var(--tt-muted); }
.tt-copy { margin: 0; width: 100%; }

/* ---------- Páginas internas ---------- */

.tt-page { padding-top: 32px; padding-bottom: 80px; }
.tt-page-title { margin: 0 0 28px; font-family: var(--tt-serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; color: var(--tt-green); }
.tt-entry + .tt-entry { margin-top: 40px; }
.tt-entry-title { font-family: var(--tt-serif); font-weight: 400; }
.tt-content { max-width: 760px; }
.woocommerce-cart .tt-content,
.woocommerce-checkout .tt-content,
.woocommerce-account .tt-content { max-width: none; }

/* ---------- WooCommerce ---------- */

.woocommerce .woocommerce-breadcrumb { color: var(--tt-muted); font-size: 14px; margin-bottom: 24px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--tt-muted); }

.woocommerce div.product .product_title { font-family: var(--tt-serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; color: var(--tt-green); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--tt-green); font-size: 26px; font-weight: 700; }
.woocommerce div.product p.price del,
.woocommerce div.product span.price del { color: var(--tt-muted); font-size: 17px; font-weight: 400; }
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product div.images img { border-radius: var(--tt-radius); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .button { float: none; min-height: 52px; }
.woocommerce .quantity .qty { width: 72px; min-height: 52px; border: 1px solid var(--tt-line); border-radius: 12px; background: #fff; font-size: 16px; }

.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 24px; border-bottom: 1px solid var(--tt-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0 24px 0 0; padding: 0; }
.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 a { padding: 12px 0; color: var(--tt-muted); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--tt-green); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--tt-green); }

.woocommerce span.onsale { min-width: 0; min-height: 0; padding: 6px 12px; border-radius: 999px; background: var(--tt-green); font-size: 13px; font-weight: 600; line-height: 1.2; top: 12px; left: 12px; }

.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--tt-sans); font-size: 16px; font-weight: 600; color: var(--tt-ink); }
.woocommerce ul.products li.product .price { color: var(--tt-green); font-weight: 700; }
.woocommerce ul.products li.product a img { border-radius: 12px; }
.woocommerce .related > h2,
.woocommerce .upsells > h2,
.woocommerce .cart-collaterals h2 { font-family: var(--tt-serif); font-weight: 400; color: var(--tt-green); }

.woocommerce-message,
.woocommerce-info { border-top-color: var(--tt-green); background: #fff; }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--tt-green); }

.woocommerce table.shop_table { border-color: var(--tt-line); border-radius: var(--tt-radius); background: #fff; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single { min-height: 48px; border: 1px solid var(--tt-line); border-radius: 10px; background: #fff; padding: 10px 14px; font-size: 16px; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 26px; padding: 0; }

/* Carrinho e checkout em blocos */
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select__select { border-radius: 10px !important; }
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button { border-radius: 12px; }
.wc-block-components-product-name { color: var(--tt-ink); font-weight: 600; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { color: var(--tt-green); }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
	.tt-menu { gap: 18px; }
	.tt-feats-in li { padding: 8px 12px; gap: 12px; }
	.tt-final-copy { padding-left: 0; }
	.tt-final .tt-btn { margin-right: 0; }
	.tt-final-leaves-l, .tt-final-leaves-r { display: none; }
}

@media (max-width: 820px) {
	body { font-size: 16px; }

	/* Cabeçalho com menu sanduíche */
	.tt-header { border-bottom: 1px solid var(--tt-line); }
	.tt-header-in { min-height: 76px; gap: 12px; }
	.tt-burger { display: inline-flex; align-items: center; justify-content: center; }
	.tt-brand { flex: 1; display: flex; justify-content: center; }
	.tt-logo { gap: 10px; }
	.tt-logo .tt-mark { width: 44px; height: 44px; }
	.tt-logo-name { font-size: 25px; }
	.tt-logo-sub { font-size: 9px; margin-top: 4px; }
	.tt-logo-sub::before, .tt-logo-sub::after { width: 22px; }
	.tt-cart { margin-left: 0; }
	.tt-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--tt-cream); border-bottom: 1px solid var(--tt-line); padding: 8px var(--tt-gutter) 16px; display: none; }
	.tt-nav.is-open { display: block; }
	.tt-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.tt-menu a { min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--tt-line); }
	.tt-menu li:last-child a { border-bottom: 0; }

	/* Topo */
	.tt-hero-leaves { display: none; }
	.tt-hero-media { width: 66%; bottom: auto; height: 340px; }
	.tt-hero-media img { object-position: 38% center; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 50%), linear-gradient(to top, transparent 0%, #000 30%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 50%), linear-gradient(to top, transparent 0%, #000 30%); mask-composite: intersect; }
	.tt-hero-in { min-height: 0; padding-top: 40px; padding-bottom: 28px; }
	.tt-hero-copy { max-width: none; }
	.tt-eyebrow { font-size: 12px; max-width: 60%; }
	.tt-eyebrow::after { display: none; }
	.tt-hero-title { font-size: clamp(2.2rem, 10vw, 2.8rem); max-width: 7.5em; }
	.tt-hero-sub { font-size: 15px; max-width: 58%; }
	.tt-btn-lg { width: 100%; max-width: 420px; min-height: 54px; }
	.tt-assure { font-size: 13px; }
	.tt-assure .tt-ico { width: 26px; height: 26px; }

	/* Benefícios: 4 colunas pequenas */
	.tt-feats-in { padding: 18px 8px; }
	.tt-feats-in li { flex-direction: column; gap: 8px; padding: 4px 6px; text-align: center; font-size: 12.5px; }
	.tt-feats-in .tt-ico { width: 32px; height: 32px; }

	/* Qualidade */
	.tt-about { padding: 18px 0 20px; }
	.tt-about-in { grid-template-columns: minmax(0, 1fr); gap: 22px; text-align: center; }
	.tt-about-img { order: -1; aspect-ratio: 16 / 9; }
	.tt-about-copy { display: flex; flex-direction: column; align-items: center; }
	.tt-about-copy .tt-eyebrow { display: none; }
	.tt-h2 { font-size: 1.7rem; margin-bottom: 10px; }
	.tt-text { font-size: 15px; margin-bottom: 18px; }

	/* Inspirações: carrossel com rolagem lateral */
	.tt-insp-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--tt-gutter); gap: 12px; margin: 0 calc(var(--tt-gutter) * -1); padding: 0 var(--tt-gutter) 6px; }
	.tt-insp-grid li { flex: 0 0 62%; scroll-snap-align: start; }
	.tt-rule-title { font-size: 1.35rem; gap: 12px; }

	/* Faixa final */
	.tt-final-in { flex-direction: column; align-items: stretch; text-align: left; padding-top: 28px; padding-bottom: 28px; }
	.tt-final-copy > .tt-ico { width: 42px; height: 42px; }
	.tt-final .tt-btn { max-width: none; }
}

@media (max-width: 380px) {
	.tt-feats-in li { font-size: 11.5px; }
	.tt-hero-sub { max-width: 64%; }
}
