/* ==========================================================================
   Favorecida Cerâmica: estilos globais
   Sumário: 1 Tokens · 2 Base · 3 Utilitários · 4 Botões e formulários
            5 Cabeçalho · 6 Cabeçalho de página · 7 Conteúdo · 8 Listagens
            9 Rodapé · 10 Avisos WooCommerce · 11 Movimento reduzido
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	/* Paleta oficial */
	--fc-brown: #8B6B4A;
	--fc-beige: #DCC8AE;
	--fc-offwhite: #F7F3EF;
	--fc-brown-dark: #5A4032;
	--fc-gold: #BFA47A;

	/* Derivadas (mesmas matizes, para contraste e superfícies) */
	--fc-beige-soft: #EFE5D7;
	--fc-brown-text: #7A5C3E;   /* texto de destaque com contraste AA sobre o off-white */
	--fc-surface: #FFFDFA;
	--fc-line: rgba(139, 107, 74, .28);
	--fc-line-soft: rgba(139, 107, 74, .16);

	/* Tipografia */
	--fc-font-heading: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
	--fc-font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Layout */
	--fc-gutter: clamp(1rem, .5rem + 2.5vw, 2rem);
	--fc-content: 46rem;
	--fc-wide: 80rem;
	--fc-header-h: 4rem;
	--fc-radius: .5rem;
	--fc-radius-lg: 1rem;
	--fc-shadow: 0 14px 30px -20px rgba(90, 64, 50, .45);
}

@media (min-width: 64em) {
	:root { --fc-header-h: 5rem; }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--fc-header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--fc-offwhite);
	color: var(--fc-brown-dark);
	font: 400 1rem/1.7 var(--fc-font-body);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; }
svg { max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	font-family: var(--fc-font-heading);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: .02em;
	color: var(--fc-brown-dark);
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.25em; }

a {
	color: inherit;
	text-decoration-color: var(--fc-gold);
	text-underline-offset: .22em;
	text-decoration-thickness: 1px;
}
a:hover { color: var(--fc-brown-text); }

:focus-visible {
	outline: 2px solid var(--fc-brown-dark);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection { background: var(--fc-beige); color: var(--fc-brown-dark); }

/* 3. Utilitários ----------------------------------------------------------- */
.fc-container {
	width: min(100% - 2 * var(--fc-gutter), var(--fc-wide));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal;
}

.skip-link.screen-reader-text:focus {
	position: fixed !important;
	top: .75rem;
	left: .75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: .8rem 1.25rem;
	clip: auto;
	clip-path: none;
	background: var(--fc-brown-dark);
	color: var(--fc-offwhite);
	border-radius: var(--fc-radius);
	text-decoration: none;
}

.fc-icon { display: block; width: 1.5rem; height: 1.5rem; flex: none; }

/* Ornamento botânico: linhas finas com ramo e coração ao centro */
.fc-ornament {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--fc-gold);
}
.fc-ornament::before,
.fc-ornament::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--fc-gold);
	opacity: .55;
}
.fc-ornament__svg { width: 7.5rem; height: 1.5rem; flex: none; }

/* 4. Botões e formulários -------------------------------------------------- */
.fc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 2.875rem;
	padding: .7rem 1.75rem;
	border: 1px solid var(--fc-brown-dark);
	border-radius: 999px;
	background: var(--fc-brown-dark);
	color: var(--fc-offwhite);
	font: 500 .9375rem/1.2 var(--fc-font-body);
	letter-spacing: .04em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.fc-btn:hover {
	background: var(--fc-brown-text);
	border-color: var(--fc-brown-text);
	color: var(--fc-offwhite);
}
.fc-btn--outline {
	background: transparent;
	color: var(--fc-brown-dark);
}
.fc-btn--outline:hover {
	background: var(--fc-brown-dark);
	border-color: var(--fc-brown-dark);
	color: var(--fc-offwhite);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	min-height: 2.875rem;
	padding: .6rem 1rem;
	border: 1px solid var(--fc-brown);
	border-radius: var(--fc-radius);
	background: var(--fc-surface);
	color: var(--fc-brown-dark);
	font: inherit;
}
textarea { min-height: 8rem; }
::placeholder { color: var(--fc-brown-text); opacity: .8; }

/* 5. Cabeçalho ------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 100;
	background: var(--fc-offwhite);
	border-bottom: 1px solid var(--fc-line);
	transition: box-shadow .25s ease;
}
.has-sticky-header .site-header { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: var(--fc-shadow); }

.admin-bar.has-sticky-header .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-sticky-header .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar.has-sticky-header .site-header { top: 0; } }

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	column-gap: .25rem;
	min-height: var(--fc-header-h);
}

.site-header__toggle { grid-column: 1; grid-row: 1; margin-left: -.5rem; }
.site-branding { grid-column: 2; grid-row: 1; justify-self: center; min-width: 0; line-height: 0; }
.site-header__actions { grid-column: 3; grid-row: 1; display: flex; align-items: center; margin-right: -.5rem; }

.site-branding .custom-logo-link { display: inline-block; }
.site-branding img.custom-logo { display: block; width: auto; max-width: 100%; max-height: 2.75rem; object-fit: contain; }

.site-title {
	display: inline-block;
	font: 600 1.15rem/1.2 var(--fc-font-heading);
	letter-spacing: .08em;
	color: var(--fc-brown-dark);
	text-decoration: none;
}

/* Botões de ícone (pesquisa, conta, carrinho, menu) */
.fc-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--fc-brown-dark);
	cursor: pointer;
	text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}
.fc-icon-btn:hover { color: var(--fc-brown-text); background: var(--fc-beige-soft); }

.site-header__toggle .fc-icon--close { display: none; }
.site-header__toggle[aria-expanded="true"] .fc-icon--menu { display: none; }
.site-header__toggle[aria-expanded="true"] .fc-icon--close { display: block; }

.fc-cart-count {
	position: absolute;
	top: .15rem;
	right: .05rem;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 .3rem;
	border-radius: 999px;
	background: var(--fc-brown-dark);
	color: var(--fc-offwhite);
	font: 600 .6875rem/1.15rem var(--fc-font-body);
	text-align: center;
}
.fc-cart-count[hidden] { display: none; }

/* Menu: mobile primeiro. Sem JS, o menu aparece aberto abaixo da logomarca. */
.site-nav { grid-column: 1 / -1; grid-row: 2; padding-bottom: 1rem; }

.fc-menu,
.fc-menu .sub-menu { margin: 0; padding: 0; list-style: none; }

.fc-menu a {
	display: block;
	padding: .9rem 0;
	border-bottom: 1px solid var(--fc-line-soft);
	font: 500 1rem/1.3 var(--fc-font-body);
	letter-spacing: .03em;
	text-decoration: none;
	color: var(--fc-brown-dark);
}
.fc-menu a:hover,
.fc-menu .current-menu-item > a,
.fc-menu .current-menu-ancestor > a,
.fc-menu a[aria-current="page"] { color: var(--fc-brown-text); }
.fc-menu .sub-menu { padding-left: 1rem; }

.js .site-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: .25rem var(--fc-gutter) 1.5rem;
	background: var(--fc-offwhite);
	border-bottom: 1px solid var(--fc-line);
	box-shadow: var(--fc-shadow);
	max-height: calc(100vh - var(--fc-header-h));
	max-height: calc(100dvh - var(--fc-header-h));
	overflow-y: auto;
}
.js .site-nav.is-open { display: block; }

/* Painel de pesquisa */
.header-search {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 1rem 0 1.25rem;
	background: var(--fc-offwhite);
	border-bottom: 1px solid var(--fc-line);
	box-shadow: var(--fc-shadow);
}
.header-search[hidden] { display: none; }
.no-js .header-search[hidden] { display: block; position: static; box-shadow: none; }

.fc-search-form { display: flex; gap: .5rem; width: min(100%, 40rem); margin-inline: auto; }
.fc-search-form__input { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 1.25rem; }
.fc-search-form .fc-btn { padding-inline: 1.25rem; }

/* Desktop */
@media (min-width: 64em) {
	.site-header__inner { column-gap: 2.5rem; }
	.site-header__toggle { display: none; }
	.site-branding { grid-column: 1; justify-self: start; }
	.site-branding img.custom-logo { max-height: 3.5rem; }
	.site-header__actions { grid-column: 3; margin-right: -.5rem; }

	.site-nav,
	.js .site-nav {
		grid-column: 2;
		grid-row: 1;
		display: block;
		position: static;
		justify-self: center;
		max-height: none;
		padding: 0;
		overflow: visible;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.fc-menu { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.75rem); }
	.fc-menu > li { position: relative; }
	.fc-menu a {
		position: relative;
		padding: .5rem 0;
		border: 0;
		font-size: .9375rem;
		white-space: nowrap;
	}
	.fc-menu > li > a::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: .1rem;
		height: 1px;
		background: var(--fc-gold);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .25s ease;
	}
	.fc-menu > li > a:hover::after,
	.fc-menu > li > a:focus-visible::after,
	.fc-menu > .current-menu-item > a::after,
	.fc-menu > .current-menu-ancestor > a::after,
	.fc-menu > li > a[aria-current="page"]::after { transform: scaleX(1); }

	/* Submenus (um nível) */
	.fc-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: -1rem;
		z-index: 10;
		min-width: 14rem;
		padding: .5rem 1rem;
		background: var(--fc-offwhite);
		border: 1px solid var(--fc-line);
		border-radius: var(--fc-radius);
		box-shadow: var(--fc-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(.25rem);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.fc-menu li:hover > .sub-menu,
	.fc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.fc-menu .sub-menu a { padding: .55rem 0; }
}

/* 6. Cabeçalho de página --------------------------------------------------- */
.site-main { min-height: 50vh; padding-bottom: clamp(2.5rem, 6vw, 5rem); }

.page-header {
	padding-block: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2.25rem);
	text-align: center;
}
.page-title { margin: 0; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
.page-header .fc-ornament { width: min(100%, 17rem); margin: 1.25rem auto 0; }
.page-description { max-width: 40rem; margin: 1.25rem auto 0; color: var(--fc-brown-text); }

.fc-breadcrumb { margin-bottom: 1rem; font-size: .8125rem; color: var(--fc-brown-text); }
.fc-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .25rem .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fc-breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--fc-gold); }
.fc-breadcrumb a { text-decoration: none; }
.fc-breadcrumb a:hover { text-decoration: underline; }
.fc-breadcrumb__sep { margin-inline: .5rem; color: var(--fc-gold); }
.site-main--shop .fc-breadcrumb { margin-block: 1.5rem 0; text-align: center; }

/* 7. Conteúdo -------------------------------------------------------------- */
.entry-content > * {
	width: min(100% - 2 * var(--fc-gutter), var(--fc-content));
	margin-block: 0;
	margin-inline: auto;
}
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content > h2,
.entry-content > h3 { margin-top: 2.5rem; }
.entry-content > .alignwide { width: min(100% - 2 * var(--fc-gutter), var(--fc-wide)); }
.entry-content > .alignfull { width: 100%; max-width: none; }
.fc-wide-page .entry-content > * { width: min(100% - 2 * var(--fc-gutter), var(--fc-wide)); }
.fc-wide-page .entry-content > .alignfull { width: 100%; }

.entry-content img { border-radius: var(--fc-radius); }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .35em; }

.entry-content blockquote,
.wp-block-quote {
	margin-inline: 0;
	padding: .25rem 0 .25rem 1.5rem;
	border-left: 2px solid var(--fc-gold);
	font-family: var(--fc-font-heading);
	font-size: 1.15rem;
}

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
figcaption { margin-top: .5rem; font-size: .875rem; color: var(--fc-brown-text); }

.fc-entry__meta { width: min(100% - 2 * var(--fc-gutter), var(--fc-content)); margin: 0 auto 1.5rem; text-align: center; color: var(--fc-brown-text); font-size: .875rem; }
.fc-entry__media { width: min(100% - 2 * var(--fc-gutter), var(--fc-wide)); margin: 0 auto 2rem; }
.fc-entry__media img { width: 100%; border-radius: var(--fc-radius-lg); }

.fc-notfound { padding-block: clamp(2.5rem, 7vw, 5rem); text-align: center; }
.fc-notfound .fc-ornament { width: min(100%, 17rem); margin: 1.25rem auto 1.75rem; }
.fc-notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.fc-empty { max-width: 32rem; margin: 2rem auto; text-align: center; }

/* 8. Listagens (blog, arquivos, pesquisa) ---------------------------------- */
.fc-post-grid {
	display: grid;
	gap: 2.25rem 1.75rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}
.fc-card__media { display: block; overflow: hidden; border-radius: var(--fc-radius-lg); aspect-ratio: 4 / 3; background: var(--fc-beige-soft); }
.fc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.fc-card__body { padding-top: 1rem; }
.fc-card__title { margin: 0 0 .35rem; font-size: 1.15rem; }
.fc-card__title a { text-decoration: none; }
.fc-card__title a:hover { text-decoration: underline; text-decoration-color: var(--fc-gold); }
.fc-card__meta { margin: 0 0 .5rem; font-size: .8125rem; color: var(--fc-brown-text); }
.fc-card__excerpt p { margin: 0; }

.navigation.pagination { margin-top: 3rem; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 .9rem;
	border: 1px solid var(--fc-line);
	border-radius: 999px;
	font-size: .9375rem;
	text-decoration: none;
}
a.page-numbers:hover { background: var(--fc-beige-soft); }
.page-numbers.current { background: var(--fc-brown-dark); border-color: var(--fc-brown-dark); color: var(--fc-offwhite); }
.page-numbers.dots { border-color: transparent; }

/* 9. Rodapé ---------------------------------------------------------------- */
.site-footer {
	margin-top: clamp(2rem, 5vw, 4rem);
	background: var(--fc-beige-soft);
	border-top: 1px solid var(--fc-line);
}
.site-footer__ornament { padding-top: 2.25rem; }

.site-footer__grid {
	display: grid;
	gap: 2.5rem 3rem;
	grid-template-columns: 1fr;
	padding-block: 2.5rem 3rem;
}
@media (min-width: 40em) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }

.site-footer__logo { display: inline-block; max-width: 13rem; margin-bottom: 1rem; line-height: 0; text-decoration: none; }
.site-footer__logo img { display: block; width: auto; max-width: 100%; max-height: 4.5rem; }
.site-footer__slogan { max-width: 18rem; margin: 0; font: 500 1rem/1.5 var(--fc-font-heading); letter-spacing: .04em; }

.site-footer__title { margin: 0 0 1rem; font-size: 1rem; letter-spacing: .08em; }

.fc-footer-menu { margin: 0; padding: 0; list-style: none; }
.fc-footer-menu li + li { margin-top: .15rem; }
.fc-footer-menu a {
	display: inline-block;
	padding: .45rem 0;
	font-size: .9375rem;
	text-decoration: none;
}
.fc-footer-menu a:hover { text-decoration: underline; text-decoration-color: var(--fc-gold); }

.fc-social { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.fc-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--fc-brown);
	border-radius: 50%;
	color: var(--fc-brown-dark);
	transition: background-color .2s ease, color .2s ease;
}
.fc-social a:hover { background: var(--fc-brown-dark); border-color: var(--fc-brown-dark); color: var(--fc-offwhite); }

.fc-contact { margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: .9375rem; }
.fc-contact li { display: flex; align-items: flex-start; gap: .65rem; }
.fc-contact li + li { margin-top: .75rem; }
.fc-contact .fc-icon { width: 1.15rem; height: 1.15rem; margin-top: .3rem; color: var(--fc-brown); }
.fc-contact a { text-decoration: none; }
.fc-contact a:hover { text-decoration: underline; text-decoration-color: var(--fc-gold); }
.fc-contact address { font-style: normal; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .25rem 1.5rem;
	padding-block: 1.25rem 1.5rem;
	border-top: 1px solid var(--fc-line);
	font-size: .8125rem;
}
.site-footer__bottom p { margin: 0; }

/* 10. Avisos do WooCommerce (base compartilhada) --------------------------- */
.woocommerce-notices-wrapper { margin-bottom: 1.5rem; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	list-style: none;
	background: var(--fc-beige-soft);
	border-left: 3px solid var(--fc-gold);
	border-radius: var(--fc-radius);
}
.woocommerce-error { border-left-color: var(--fc-brown-dark); }
.woocommerce-message a.button,
.woocommerce-info a.button { margin-left: .75rem; }

/* 11. Movimento reduzido --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
