/* Achadinhos da Thamy — layout do site */

:root {
	--ach-wine: #7a0a26;
	--ach-wine-dark: #560619;
	--ach-magenta: #a8124a;
	--ach-rose: #e0577f;
	--ach-petal: #f6b3c2;
	--ach-blush: #fde7ee;
	--ach-cream: #fff8fa;
	--ach-white: #ffffff;
	--ach-ink: #2e0d18;
	--ach-text: #4a2a35;
	--ach-muted: #8c6a76;
	--ach-line: #f1d6df;
	--ach-gold: #c98a2b;
	--ach-radius: 16px;
	--ach-radius-sm: 10px;
	--ach-shadow: 0 1px 2px rgba(122, 10, 38, .06), 0 8px 24px rgba(122, 10, 38, .07);
	--ach-shadow-hover: 0 2px 4px rgba(122, 10, 38, .08), 0 16px 36px rgba(122, 10, 38, .14);
	--ach-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--ach-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ach-gutter: 16px;
}

body.ach {
	margin: 0;
	background: var(--ach-cream);
	color: var(--ach-text);
	font-family: var(--ach-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
body.ach *, body.ach *::before, body.ach *::after { box-sizing: border-box; }
:where(body.ach) img { max-width: 100%; height: auto; display: block; }
:where(body.ach) a { color: var(--ach-magenta); text-decoration: none; }
:where(body.ach) a:hover { color: var(--ach-wine); }
body.ach h1, body.ach h2, body.ach h3 {
	font-family: var(--ach-serif);
	color: var(--ach-wine);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -.01em;
}
body.ach :focus-visible { outline: 3px solid var(--ach-rose); outline-offset: 2px; border-radius: 6px; }

.ach-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--ach-gutter); }
.ach-wrap--narrow { max-width: 820px; }

.screen-reader-text, .ach-skip {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.ach-skip:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Botões ---------- */
.ach-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: linear-gradient(135deg, var(--ach-magenta), var(--ach-wine));
	color: #fff !important;
	font-family: var(--ach-sans); font-weight: 600; font-size: 15px;
	padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
	box-shadow: 0 6px 16px rgba(168, 18, 74, .25);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	text-align: center; line-height: 1.2;
}
.ach-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(168, 18, 74, .32); filter: brightness(1.05); color: #fff; }
.ach-btn--sm { font-size: 13px; padding: 9px 14px; width: 100%; box-shadow: none; }
.ach-btn--lg { font-size: 17px; padding: 16px 30px; width: 100%; max-width: 420px; }
.ach-btn--ghost { background: transparent; color: var(--ach-wine) !important; border: 1.5px solid var(--ach-wine); box-shadow: none; }
.ach-btn--ghost:hover { background: var(--ach-wine); color: #fff !important; }
.ach-btn--light { background: #fff; color: var(--ach-wine) !important; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.ach-btn--light:hover { color: var(--ach-wine) !important; }

/* ---------- Topo ---------- */
.ach-topbar { background: var(--ach-wine); color: #fde7ee; font-size: 12.5px; text-align: center; padding: 7px 0; letter-spacing: .02em; }

.ach-header { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--ach-line); }
body.admin-bar .ach-header { top: 46px; }
@media (min-width: 783px) { body.admin-bar .ach-header { top: 32px; } }

.ach-header__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; }
body.ach .ach-logo img { height: 56px; width: auto; }
.ach-logo span { font-family: var(--ach-serif); font-size: 22px; color: var(--ach-wine); font-weight: 700; }

.ach-search { display: flex; align-items: center; background: var(--ach-blush); border: 1.5px solid transparent; border-radius: 999px; padding: 4px 4px 4px 16px; transition: border-color .15s, background .15s; min-width: 0; }
.ach-search:focus-within { border-color: var(--ach-rose); background: #fff; }
.ach-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ach-ink); padding: 8px 0; outline: none; }
.ach-search input::placeholder { color: var(--ach-muted); }
.ach-search button { border: 0; background: var(--ach-wine); color: #fff; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; flex: none; }

.ach-header__links { display: flex; align-items: center; gap: 4px; }
.ach-header__links a { color: var(--ach-wine); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.ach-header__links a:hover { background: var(--ach-blush); }
.ach-insta { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 860px) {
	.ach-header__row { grid-template-columns: auto 1fr; }
	.ach-header__row .ach-search { grid-column: 1 / -1; order: 3; }
	.ach-header__links { justify-content: flex-end; }
	.ach-header__links a:not(.ach-insta) { display: none; }
	.ach-insta span { display: none; }
	body.ach .ach-logo img { height: 48px; }
	body.ach.home .ach-header__row .ach-search { display: none; }
	.ach-topbar { font-size: 11px; padding: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.ach-cats { border-top: 1px solid var(--ach-line); }
.ach-cats__track { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.ach-cats__track::-webkit-scrollbar { display: none; }
.ach-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--ach-text) !important; background: #fff; border: 1px solid var(--ach-line); padding: 7px 14px; border-radius: 999px; scroll-snap-align: start; transition: all .15s; }
.ach-chip:hover { border-color: var(--ach-rose); color: var(--ach-wine) !important; }
.ach-chip.is-active { background: var(--ach-wine); border-color: var(--ach-wine); color: #fff !important; }
.ach-chip--sm { font-size: 12.5px; padding: 5px 12px; margin-bottom: 12px; }

/* ---------- Hero ---------- */
.ach-hero { background: radial-gradient(1200px 400px at 85% 10%, #fbd3df 0%, transparent 60%), linear-gradient(180deg, var(--ach-blush), var(--ach-cream)); padding: 40px 0 28px; overflow: hidden; }
.ach-hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.ach-eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: 12px; font-weight: 600; color: var(--ach-magenta); margin: 0 0 10px; }
.ach-hero h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 14px; }
.ach-hero__lead { font-size: 18px; color: var(--ach-text); max-width: 34ch; margin: 0 0 22px; }
.ach-search--hero { background: #fff; box-shadow: var(--ach-shadow); max-width: 560px; padding: 6px 6px 6px 20px; }
.ach-search--hero input { font-size: 16px; }
.ach-search--hero button { width: auto; height: 46px; padding: 0 22px; font: 600 15px var(--ach-sans); background: linear-gradient(135deg, var(--ach-magenta), var(--ach-wine)); }
.ach-hero__stats { margin: 14px 0 0; font-size: 14px; color: var(--ach-muted); }
.ach-hero__stats strong { color: var(--ach-wine); }
.ach-hero__art img { width: 100%; max-width: 420px; margin-left: auto; filter: drop-shadow(0 18px 30px rgba(122, 10, 38, .18)); }

@media (max-width: 760px) {
	.ach-hero { padding: 24px 0 20px; }
	.ach-hero__inner { grid-template-columns: 1fr; gap: 0; }
	.ach-hero__art { display: none; }
	.ach-hero__lead { font-size: 16px; }
}

/* ---------- Seções ---------- */
.ach-section { padding: 36px 0; }
.ach-section--tight { padding: 22px 0 40px; }
.ach-section--tint { background: linear-gradient(180deg, #fff, var(--ach-blush)); }
.ach-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ach-section__head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.ach-section__head a { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ach-section__head a::after { content: " →"; }
.ach-subtitle { font-size: 24px; margin: 32px 0 16px !important; }

.ach-page-head { background: linear-gradient(180deg, var(--ach-blush), var(--ach-cream)); padding: 26px 0 10px; }
.ach-page-head h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 6px; }
.ach-page-head__sub { color: var(--ach-muted); margin: 0; }
.ach-crumbs { font-size: 13px; color: var(--ach-muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ach-crumbs a { color: var(--ach-muted); }
.ach-crumbs a:hover { color: var(--ach-wine); }

.ach-empty { text-align: center; padding: 40px 16px; }
.ach-empty p { color: var(--ach-muted); }

/* ---------- Categorias ---------- */
.ach-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ach-cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: #fff; border: 1px solid var(--ach-line); border-radius: var(--ach-radius); padding: 18px 10px 14px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ach-cat-tile:hover { transform: translateY(-2px); box-shadow: var(--ach-shadow); border-color: var(--ach-petal); }
.ach-cat-tile__icon { font-size: 30px; line-height: 1; width: 58px; height: 58px; display: grid; place-items: center; background: var(--ach-blush); border-radius: 50%; margin-bottom: 6px; }
.ach-cat-tile__name { font-weight: 600; color: var(--ach-ink); font-size: 14px; line-height: 1.3; }
.ach-cat-tile__count { font-size: 12px; color: var(--ach-muted); }
@media (max-width: 520px) {
	.ach-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.ach-cat-tile { padding: 12px 6px 10px; }
	.ach-cat-tile__icon { width: 46px; height: 46px; font-size: 24px; }
	.ach-cat-tile__name { font-size: 12.5px; }
}

/* ---------- Cards de produto ---------- */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .ach-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.ach-card { background: #fff; border-radius: var(--ach-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ach-shadow); transition: transform .18s ease, box-shadow .18s ease; min-width: 0; }
.ach-card:hover { transform: translateY(-3px); box-shadow: var(--ach-shadow-hover); }
.ach-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--ach-blush); overflow: hidden; }
.ach-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ach-card:hover .ach-card__media img { transform: scale(1.04); }
.ach-card__tag { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, .93); color: var(--ach-wine); font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-card__body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
body.ach .ach-card__title { font-family: var(--ach-sans); font-size: 14px; font-weight: 500; line-height: 1.4; margin: 0; color: var(--ach-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; letter-spacing: 0; }
.ach-card__title a { color: inherit !important; }
.ach-card__meta { margin: 0; font-size: 12px; color: var(--ach-muted); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; }
.ach-star { color: var(--ach-gold); font-weight: 600; }
@media (max-width: 520px) {
	.ach-card__body { padding: 10px; gap: 6px; }
	body.ach .ach-card__title { font-size: 13px; }
	.ach-btn--sm { font-size: 12.5px; padding: 8px 10px; }
}

/* ---------- Toolbar / paginação ---------- */
.ach-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.ach-toolbar__label { font-size: 13px; color: var(--ach-muted); margin-right: 4px; }
.ach-pill { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ach-line); color: var(--ach-text) !important; }
.ach-pill.is-active { background: var(--ach-blush); border-color: var(--ach-rose); color: var(--ach-wine) !important; font-weight: 600; }

.ach-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.ach-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--ach-line); color: var(--ach-text) !important; font-size: 14px; font-weight: 500; }
.ach-pagination .page-numbers.current { background: var(--ach-wine); color: #fff !important; border-color: var(--ach-wine); }

/* ---------- Página do produto ---------- */
.ach-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--ach-shadow); }
.ach-product__media { position: sticky; top: 140px; }
.ach-product__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--ach-radius); background: var(--ach-blush); }
.ach-product h1 { font-size: clamp(22px, 2.6vw, 30px); }
.ach-product__facts { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.ach-product__facts li { background: var(--ach-blush); color: var(--ach-text); font-size: 13.5px; padding: 6px 12px; border-radius: 999px; }
.ach-product__note { font-size: 13px; color: var(--ach-muted); margin: 10px 0 22px; }
.ach-product__desc { border-top: 1px solid var(--ach-line); padding-top: 18px; font-size: 15px; }
.ach-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ach-muted); }
.ach-share a, .ach-share button { font: 600 13px var(--ach-sans); background: #fff; border: 1px solid var(--ach-line); color: var(--ach-wine) !important; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
@media (max-width: 760px) {
	.ach-product { grid-template-columns: 1fr; gap: 18px; padding: 12px; border-radius: 18px; }
	.ach-product__media { position: static; }
	.ach-btn--lg { max-width: none; }
}

/* ---------- Blog ---------- */
.ach-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ach-post-card { background: #fff; border-radius: var(--ach-radius); overflow: hidden; box-shadow: var(--ach-shadow); display: flex; flex-direction: column; }
.ach-post-card__media { aspect-ratio: 16 / 10; background: var(--ach-blush); display: block; overflow: hidden; }
.ach-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ach-post-card__ph { display: grid; place-items: center; height: 100%; font-size: 40px; }
.ach-post-card__body { padding: 16px 18px 20px; }
.ach-post-card__date { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ach-muted); margin: 0 0 6px; }
.ach-post-card h3 { font-size: 19px; margin-bottom: 8px; }
.ach-post-card h3 a { color: var(--ach-wine) !important; }
.ach-post-card p { margin: 0; font-size: 14px; color: var(--ach-text); }

.ach-article__head { background: linear-gradient(180deg, var(--ach-blush), var(--ach-cream)); padding: 30px 0 18px; }
.ach-article__head h1 { font-size: clamp(28px, 4.2vw, 44px); }
.ach-article__date { color: var(--ach-muted); font-size: 14px; margin: 0; }
.ach-article__cover { margin: 0 0 24px; }
.ach-article__cover img { width: 100%; border-radius: var(--ach-radius); }
.ach-prose { font-size: 17px; line-height: 1.75; color: var(--ach-text); padding-bottom: 20px; }
.ach-prose h2 { font-size: 26px; margin-top: 1.6em; }
.ach-prose h3 { font-size: 21px; margin-top: 1.4em; }
.ach-prose img { border-radius: var(--ach-radius-sm); }
.ach-prose a:not(.ach-btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ach-petal); }

.ach-blog-item { background: #fff; border: 1px solid var(--ach-line); border-radius: var(--ach-radius); padding: 18px; margin: 22px 0; box-shadow: var(--ach-shadow); }
.ach-blog-item h2 { font-size: 21px !important; margin-top: 0 !important; }
.ach-blog-item img { width: 100%; max-width: 380px; aspect-ratio: 1 / 1; object-fit: cover; margin: 6px 0 10px; }
.ach-blog-meta { font-size: 14px; color: var(--ach-muted); margin: 0 0 12px; }
.ach-blog-item p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 0; }
.ach-disclosure { font-size: 13px; color: var(--ach-muted); background: var(--ach-blush); border-radius: var(--ach-radius-sm); padding: 12px 16px; margin: 10px 0 40px; }

/* ---------- CTA Instagram ---------- */
.ach-cta { padding: 20px 0 48px; }
.ach-cta__inner { background: linear-gradient(135deg, var(--ach-magenta), var(--ach-wine-dark)); border-radius: 24px; padding: 34px 32px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #fde7ee; box-shadow: var(--ach-shadow-hover); max-width: calc(1240px - 32px); }
body.ach .ach-cta h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.ach-cta p { margin: 0; }
@media (max-width: 760px) { .ach-cta__inner { flex-direction: column; align-items: flex-start; padding: 26px 22px; margin: 0 var(--ach-gutter); width: auto; } }

/* ---------- Rodapé ---------- */
.ach-footer { background: #fff; border-top: 1px solid var(--ach-line); margin-top: 20px; }
.ach-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 30px; }
.ach-footer__brand img { width: 150px; margin-bottom: 12px; }
.ach-footer__brand p { font-size: 14px; margin: 0 0 16px; max-width: 34ch; }
body.ach .ach-footer__title { font-family: var(--ach-sans); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--ach-wine); margin-bottom: 12px; }
.ach-footer__list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; font-size: 14px; }
.ach-footer__list li { margin-bottom: 6px; break-inside: avoid; }
.ach-footer__list a { color: var(--ach-text) !important; }
.ach-footer__list a:hover { color: var(--ach-wine) !important; }
.ach-footer__small { font-size: 13px; color: var(--ach-muted); }
.ach-footer__bottom { border-top: 1px solid var(--ach-line); padding: 14px 0; font-size: 13px; color: var(--ach-muted); text-align: center; }
@media (max-width: 860px) { .ach-footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* Shortcode dentro de outras páginas (Elementor etc.) */
.ach-embed { font-family: var(--ach-sans); }
.ach-embed .ach-card__title { font-family: var(--ach-sans); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	body.ach * { transition: none !important; }
}
