/* ==========================================================================
   Contei Carta — visual "papelaria afetiva"
   Carregado depois de main.css e woocommerce.css (herdados do tema Contei).
   Regras: nada de texto inclinado; letra de mão = Bryndan Write (peso 400; pontuação curva vem da Just Another Hand).
   Prefixo cc- = componentes novos (home em blocos, folha da carta, selos...).
   ========================================================================== */

:root {
	--cc-max: 1240px;
	--cc-gut: clamp(16px, 4vw, 48px);
	--cc-pad: max(var(--cc-gut), calc((100% - var(--cc-max)) / 2));
	--cc-section: clamp(68px, 8vw, 116px);
	--cc-r: 10px;
	--cc-r-lg: 16px;
	--cc-text: #5e4635;
	--cc-ink: #3a1d0b;
	--cc-brown: #732c02;
	--cc-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 22' preserveAspectRatio='none'%3E%3Cpath d='M0 12C23.3 0 46.7 0 70 12S116.7 24 140 12V22H0Z'/%3E%3C/svg%3E");
	--cc-paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .28 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Base
   -------------------------------------------------------------------------- */

/* Rolagem suave até as seções (#planos, #duvidas...), descontando o cabeçalho fixo */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

@media (max-width: 1024px) {
	html { scroll-padding-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	background-color: var(--ct-bg);
	background-image: var(--cc-paper-noise);
	color: var(--cc-text);
	font-size: 16px;
	line-height: 1.6;
}

a:hover { color: var(--cc-brown); }

::selection { background: var(--ct-color-sand); color: var(--cc-ink); }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 { color: var(--cc-ink); }

.home .ct-site-content,
.page-template-default.home .ct-site-content { padding: 0; }

/* Botões
   -------------------------------------------------------------------------- */
.ct-button,
.button,
body .wp-block-button__link,
body .wp-element-button {
	min-height: 54px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--cc-brown);
	color: #fbefd5;
	font: 600 15.5px/1 var(--ct-font);
	letter-spacing: 0;
	text-decoration: none;
	outline: 1px dashed rgba(251, 239, 213, 0.25);
	outline-offset: -4px;
	box-shadow: none;
	transition: background-color 0.2s, color 0.2s;
}

body .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }

.ct-button::after,
.button::after { display: none; }

/* Seta no botão principal da abertura, como no mockup (os outros já têm "→" no texto).
   Para pôr em outro botão: classe "cc-arrow" no bloco Botões. */
.cc-hero .cc-actions .wp-block-button:first-child .wp-block-button__link::after,
.cc-arrow .wp-block-button__link::after {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ct-button:hover,
.button:hover,
body .wp-block-button__link:hover {
	background: #5a2201;
	color: #fbefd5;
}

.ct-button--outline,
body .is-style-outline > .wp-block-button__link,
body .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--cc-brown);
	outline: 0;
	box-shadow: inset 0 0 0 1.5px var(--cc-brown);
}

.ct-button--outline:hover,
body .is-style-outline > .wp-block-button__link:hover {
	background: rgba(115, 44, 2, 0.06);
	color: var(--cc-brown);
}

.ct-button--dark { background: var(--cc-brown); }

.ct-btn-subtle,
.ct-link-underline { color: var(--cc-ink); border-color: var(--cc-ink); }

/* Formulários
   -------------------------------------------------------------------------- */
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='password'],
input[type='search'],
input[type='number'],
textarea,
select {
	background-color: #fffdf8;
	border-color: rgba(115, 44, 2, 0.25);
	color: var(--cc-ink);
}

input:focus,
textarea:focus,
select:focus { border-color: var(--cc-brown); }

/* Barra do topo
   -------------------------------------------------------------------------- */
.ct-topbar {
	height: auto;
	min-height: 40px;
	line-height: 40px;
	background-color: var(--cc-brown);
	color: var(--ct-color-cream);
	border-bottom: 0;
	font-size: 13.5px;
}

.ct-topbar a,
.ct-topbar-slides__item a { color: var(--ct-color-cream); border-color: var(--ct-color-cream); font-weight: 700; }

.ct-topbar a:hover,
.ct-topbar-slides__item a:hover { color: #fff; border-color: #fff; }

/* Só a mensagem, centralizada (no celular também, quebrando linha se precisar) */
.ct-topbar__container { justify-content: center; height: auto; min-height: 40px; max-width: none; margin: 0; padding: 0 var(--cc-gut); }
.ct-topbar__left,
.ct-topbar__right { display: none; }
.ct-topbar-slides { width: 100%; max-width: 820px; margin: 0; }

@media (max-width: 767px) {
	.ct-topbar { display: block; height: auto; line-height: 1.6; }
	.ct-topbar__container { padding: 9px var(--cc-gut); }
	.ct-topbar-slides__item { white-space: normal; text-overflow: clip; }
}

/* Cabeçalho (sempre visível no topo ao rolar, como no mockup)
   -------------------------------------------------------------------------- */
.ct-header,
.ct-header__bar { background: rgba(250, 242, 226, 0.94); }

.ct-header.ct-header--sticky {
	position: sticky;
	top: 0;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.admin-bar .ct-header.ct-header--sticky { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .ct-header.ct-header--sticky { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .ct-header.ct-header--sticky { top: 0; }
}

.ct-header__bar { border-bottom: 1.5px dashed var(--ct-line); }

.ct-header__desktop .ct-header__container {
	gap: 24px;
	height: 78px;
	max-width: calc(var(--cc-max) + 2 * var(--cc-gut));
	margin: 0 auto;
	padding: 0 var(--cc-gut);
}

.ct-header__logo .ct-logo svg { width: 159px; height: auto; max-height: none; }
.ct-header__logo .ct-logo img { width: auto; height: 34px; max-height: none; }

/* Cabeçalho completo a partir de 1025px (o mockup só troca pelo menu ☰ abaixo disso) */
@media (min-width: 1025px) and (max-width: 1199px) {
	.ct-header__desktop { display: block; }
	.ct-header__mobile { display: none; }
}

@media (max-width: 1024px) {
	.ct-header__desktop { display: none; }
	.ct-header__mobile { display: block; }
	.ct-header__mobile .ct-header__container { padding: 0 var(--cc-gut); }
	.ct-header__mobile .ct-header__logo .ct-logo svg { width: 141px; }
	.ct-header__mobile .ct-header__logo .ct-logo img { height: 30px; }
	.ct-header__mobile .ct-header__left,
	.ct-header__mobile .ct-header__right { width: 90px; }
	.ct-header__mobile .ct-header__right { justify-content: flex-end; gap: 4px; }
	.ct-header__mobile .ct-header-icon:not(.ct-header-icon--hamburger) { width: 40px; }
}

.ct-header__left,
.ct-header__right { flex: 0 0 auto; }

.ct-header__center { justify-content: center; }

.ct-main-nav__menu > li > a {
	font-size: 15px;
	font-weight: 500;
	color: var(--cc-ink);
}

.ct-main-nav__menu > li > a::after { display: none; }

.ct-main-nav__menu > li > a:hover,
.ct-main-nav__menu > li.current-menu-item > a {
	color: var(--cc-ink);
	text-decoration: underline wavy var(--ct-color-sand);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

.ct-header-icon { color: var(--cc-ink); font-size: 20px; }
.ct-header__desktop .ct-header-icon { width: 42px; height: 42px; }

.ct-cart-count { background: var(--ct-color-primary); font-weight: 700; }

.ct-header-cta.ct-button {
	min-height: 40px;
	margin-left: 10px;
	padding: 0 18px;
	font-size: 14px;
}

/* Botão "Assinar" no pé do menu do celular */
.ct-panel__footer .cc-menu-cta { display: flex; width: 100%; }
.ct-panel--menu .ct-panel__header.cc-menu-logo { display: flex; align-items: center; height: auto; min-height: 64px; padding: 18px 64px 10px 20px; }
.cc-menu-logo .ct-logo svg { width: 131px; height: auto; max-height: none; }
.cc-menu-logo .ct-logo img { width: auto; height: 28px; max-height: none; }

/* Título das páginas internas
   -------------------------------------------------------------------------- */
.ct-page-header {
	background: transparent !important;
	padding-top: 56px;
	padding-bottom: 8px;
}

.ct-page-header::before,
.ct-page-header::after { display: none !important; }

.ct-page-header__title {
	font-family: var(--ct-font-display);
	font-size: clamp(34px, 3.6vw, 50px);
	font-weight: 500;
	color: var(--cc-ink);
}

/* Rodapé (como no mockup: marca | 2 colunas de links | contato + direitos e bandeiras)
   -------------------------------------------------------------------------- */
.ct-footer {
	position: relative;
	margin-top: 22px;
	padding: 70px 0 30px;
	background-color: var(--cc-brown);
	color: #ecd5a8;
	font-size: 14.5px;
}

.ct-footer::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% - 1px);
	height: 22px;
	background: var(--cc-brown);
	-webkit-mask: var(--cc-wave) 0 100% / 140px 22px repeat-x;
	mask: var(--cc-wave) 0 100% / 140px 22px repeat-x;
	pointer-events: none;
}

.cc-footer__inner { max-width: calc(var(--cc-max) + 2 * var(--cc-gut)); margin: 0 auto; padding: 0 var(--cc-gut); }

.cc-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }

.cc-footer__logo { display: flex; align-items: center; gap: 12px; }
.cc-footer__logo img { display: block; max-height: none; }
.cc-footer__logo .ct-footer__seal { width: 52px; height: auto; }
.cc-footer__logo .ct-footer__wordmark { width: auto; height: 40px; }
.cc-footer__logo .cc-footer__custom-logo { width: auto; max-width: 220px; height: auto; max-height: 60px; }

.cc-footer__tagline { margin: 16px 0 0; max-width: 34ch; line-height: 1.6; }

.ct-footer .ct-socials { display: flex; gap: 10px; margin-top: 20px; }

.ct-footer .ct-socials__item {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px currentColor;
	color: #ecd5a8;
	background: none;
}

.ct-footer .ct-socials__item:hover { background: rgba(247, 230, 192, 0.12); color: #fff6e3; }

.cc-footer__title {
	margin: 0 0 18px;
	font: 700 12.5px/1 var(--ct-font);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ct-color-sand);
}

.cc-footer__col ul,
.cc-footer__col .ct-footer-nav__menu { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.cc-footer__col li { margin: 0; padding: 0; line-height: 1.5; }

.ct-footer a { color: #ecd5a8; text-decoration: none; }
.ct-footer a:hover { color: #fff6e3; text-decoration: underline; }

.cc-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 52px;
	padding-top: 22px;
	border-top: 1px dashed rgba(247, 230, 192, 0.28);
	font-size: 13px;
}

.cc-footer__bottom p { margin: 0; }

.cc-pays { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
/* Logos das bandeiras (contei_pay_logo()): uma cor só, no tom do texto do rodapé. */
.cc-pay-logo { display: block; flex: none; height: auto; max-width: none; opacity: 0.82; }
.cc-pay { padding: 7px 9px; border: 1px solid currentColor; border-radius: 6px; font: 700 11px/1 var(--ct-font); text-transform: uppercase; opacity: 0.75; }
.cc-footer__bottom .cc-pays-img { height: 31px; width: auto; border-radius: 4px; }

@media (max-width: 900px) {
	.cc-footer__grid { grid-template-columns: 1fr 1fr; }
	.cc-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
	.cc-footer__grid { grid-template-columns: 1fr; }
}

/* Painéis (menu, busca, carrinho)
   -------------------------------------------------------------------------- */
body.contei-theme { padding-bottom: 0; }

.ct-panel__container { background-color: #fbf5e9; }

.ct-panel__title {
	font-family: var(--ct-font-display);
	font-size: 24px;
	font-weight: 500;
	color: var(--cc-ink);
}

.ct-mobile-menu-nav__menu a { font-family: var(--ct-font-display); font-weight: 500; color: var(--cc-ink); }

/* ==========================================================================
   Componentes cc-
   ========================================================================== */

/* Zera as margens dos blocos da home (o espaçamento é definido abaixo, por componente) */
.cc-home .wp-block-group,
.cc-home .wp-block-columns,
.cc-home .wp-block-column { margin-block: 0; }

.cc-home .wp-block-group > *,
.cc-home .wp-block-group__inner-container > *,
.cc-home .wp-block-column > * { margin-block: 0; }

/* Letra de mão acima dos títulos, com o traço ondulado embaixo */
.cc-eyebrow,
.cc-home .cc-eyebrow {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin: 0 0 14px;
	font: 400 30px/1.05 var(--ct-font-hand);
	letter-spacing: 0.01em;
	color: var(--cc-brown);
}

.cc-eyebrow::after {
	content: '';
	width: 34px;
	height: 10px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 10'%3E%3Cpath d='M1 5c4-4 7 4 11 0s7 4 11 0 7 4 10 0' fill='none' stroke='%23732c02' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}

.cc-section-head .cc-eyebrow,
.cc-section-head.has-text-align-center .cc-eyebrow { align-items: center; }

/* Títulos com destaque de marca-texto no itálico */
.cc-title,
.cc-home h1,
.cc-home h2 {
	margin: 0;
	font-family: var(--ct-font-display);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: var(--cc-ink);
}

.cc-home h1 { font-size: clamp(40px, 5.3vw, 70px); letter-spacing: -0.02em; }
.cc-home h2,
.cc-section-head .cc-title { font-size: clamp(32px, 3.7vw, 50px); }

.cc-home h1 em,
.cc-home h2 em,
.cc-title em {
	font-style: italic;
	color: var(--cc-brown);
	background: linear-gradient(100deg, transparent 0.25em, #f2d58e 0.25em, #f2d58e calc(100% - 0.1em), transparent calc(100% - 0.1em)) 0 86% / 100% 0.4em no-repeat;
	padding: 0 0.06em;
}

.cc-home h3 {
	margin: 0;
	font-family: var(--ct-font-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.08;
	color: var(--cc-ink);
}

.cc-home p { margin: 0; }

.cc-section-head,
.cc-home .cc-section-head {
	max-width: 720px;
	margin: 0 auto clamp(40px, 5vw, 60px);
	text-align: center;
}

.cc-section-head .cc-intro,
.cc-home .cc-section-head .cc-intro { margin: 16px auto 0; max-width: 56ch; font-size: 17px; }

/* Selos (pílulas) */
.cc-pills,
.cc-home .cc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

.cc-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--ct-color-cream);
	color: var(--cc-brown);
	font: 700 11.5px/1 var(--ct-font);
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.cc-pill--red { background: var(--ct-color-primary); color: #fff; }
.cc-pill--out { background: #f6d9d6; color: #9d1a10; }
.cc-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ct-color-success, #2e7d4f); }

.cc-chip,
.cc-home .cc-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--ct-color-cream);
	color: var(--cc-brown);
	font: 600 12.5px/1 var(--ct-font);
	align-self: flex-start;
}

/* Seções em tom kraft, com borda ondulada em cima e embaixo */
.cc-tint {
	position: relative;
	background-color: var(--cc-tint, var(--ct-kraft));
}

.cc-tint::before,
.cc-tint::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;
	height: 22px;
	background: var(--cc-tint, var(--ct-kraft));
	-webkit-mask: var(--cc-wave) 0 100% / 140px 22px repeat-x;
	mask: var(--cc-wave) 0 100% / 140px 22px repeat-x;
	pointer-events: none;
}

.cc-tint::before { bottom: calc(100% - 1px); }
.cc-tint::after { top: calc(100% - 1px); transform: scaleY(-1); }

/* Fita adesiva (decoração) */
.cc-tape,
.cc-hero__photo::before,
.cc-edition__photo::before,
.cc-about__photo::before,
.cc-card::before,
.cc-edition__card::before,
.cc-letter__sheet::before {
	content: '';
	position: absolute;
	z-index: 4;
	width: 116px;
	height: 30px;
	background: repeating-linear-gradient(-45deg, rgba(232, 203, 139, 0.85) 0 7px, rgba(247, 230, 192, 0.85) 7px 14px);
	box-shadow: 0 1px 3px rgba(58, 29, 11, 0.12);
	clip-path: polygon(0 12%, 4% 0, 96% 0, 100% 16%, 97% 36%, 100% 56%, 96% 76%, 100% 100%, 4% 100%, 0 86%, 3% 66%, 0 46%, 4% 26%);
	pointer-events: none;
}

/* Fotos estilo polaroide (retas; a legenda é editável no bloco Imagem) */
.cc-home figure.wp-block-image,
.cc-letter figure { margin: 0; }

.cc-polaroid,
.cc-hero__photo,
.cc-edition__photo,
.cc-about__photo {
	position: relative;
	background: #fff;
	padding: 12px 12px 54px !important;
	box-shadow: var(--ct-shadow);
}

.cc-hero__photo img,
.cc-edition__photo img,
.cc-about__photo img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.cc-hero__photo figcaption,
.cc-edition__photo figcaption,
.cc-about__photo figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	margin: 0;
	text-align: center;
	font: 400 27px/1.1 var(--ct-font-hand);
	color: var(--cc-brown);
}

/* ==========================================================================
   Página inicial (blocos)
   ========================================================================== */

.cc-home { overflow-x: clip; }

.cc-home .wp-block-columns { gap: 0; }

.cc-section { padding: var(--cc-section) var(--cc-pad); }

/* Colunas centralizadas na vertical (abertura, carta do momento, quem escreve), como no mockup.
   O bloco Colunas do WordPress força "align-items: normal !important" na grade; por isso o
   alinhamento vai em cada coluna. */
.cc-home .cc-hero__cols > .wp-block-column,
.cc-home .cc-edition__cols > .wp-block-column,
.cc-home .cc-about__cols > .wp-block-column { align-self: center; }

/* Botões e listas da home */
.cc-home .wp-block-buttons.cc-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cc-home .wp-block-buttons.cc-actions .wp-block-button { margin: 0; }

.cc-home ul.cc-ticks,
.cc-home ul.cc-contents,
.cc-home ul.cc-checks {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cc-home ul.cc-ticks li,
.cc-home ul.cc-contents li,
.cc-home ul.cc-checks li {
	position: relative;
	padding-left: 26px;
	color: var(--cc-ink);
}

.cc-home ul.cc-ticks li::before,
.cc-home ul.cc-contents li::before,
.cc-home ul.cc-checks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23732c02' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* --- Abertura --- */
.cc-hero { padding: clamp(40px, 6vw, 84px) var(--cc-pad) clamp(64px, 8vw, 110px); }

.cc-home .cc-hero__cols {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(36px, 5vw, 76px);
	align-items: center;
}

.cc-hero__text { display: flex; flex-direction: column; }
.cc-hero__text .cc-lead { margin-top: 24px; font-size: 18px; max-width: 54ch; }
.cc-hero__text .cc-actions { margin-top: 34px; }
.cc-home .cc-hero__text ul.cc-ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14px; font-weight: 600; }

.cc-home .cc-hero__visual { position: relative; aspect-ratio: 1 / 1.02; }

/* Carimbo postal (sem texto) */
.cc-hero__visual::before {
	content: '';
	position: absolute;
	z-index: 3;
	left: 2%;
	top: 4%;
	width: 170px;
	height: 82px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 230 110' fill='none' stroke='%23732c02' stroke-opacity='.5'%3E%3Ccircle cx='55' cy='55' r='49' stroke-width='2.4'/%3E%3Ccircle cx='55' cy='55' r='33' stroke-width='1.2'/%3E%3Cpath d='M55 41l3.6 9.4 9.4 3.6-9.4 3.6L55 67l-3.6-9.4L42 54l9.4-3.6Z' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M112 31q10-8 20 0t20 0 20 0 20 0 20 0 20 0M112 48q10-8 20 0t20 0 20 0 20 0 20 0 20 0M112 65q10-8 20 0t20 0 20 0 20 0 20 0 20 0M112 82q10-8 20 0t20 0 20 0 20 0 20 0 20 0' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat center / contain;
	transform: rotate(-12deg);
	pointer-events: none;
}

.cc-home .cc-hero__photo {
	position: absolute !important;
	z-index: 1;
	top: 5%;
	right: 5%;
	width: 74%;
}

.cc-hero__photo img { aspect-ratio: 4 / 5; object-position: 50% 28%; }
.cc-hero__photo::before { top: -14px; left: 40%; transform: rotate(-4deg); }

.cc-home .cc-hero__envelope {
	position: absolute !important;
	z-index: 2;
	left: -5%;
	bottom: 0;
	width: 52%;
	transform: rotate(-9deg);
	filter: drop-shadow(0 18px 18px rgba(58, 29, 11, 0.28));
}

.cc-hero__envelope img { width: 100%; height: auto; }

/* Selo postal picotado com o mascote */
.cc-home .cc-hero__seal {
	position: absolute !important;
	z-index: 3;
	top: -2%;
	right: -2%;
	width: 112px;
	aspect-ratio: 0.82;
	padding: 8px;
	transform: rotate(7deg);
	filter: drop-shadow(0 8px 12px rgba(58, 29, 11, 0.25));
}

.cc-hero__seal::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #fffdf7;
	-webkit-mask: radial-gradient(circle 4px at 50% 50%, #0000 96%, #000) -5px -5px / 10px 10px;
	mask: radial-gradient(circle 4px at 50% 50%, #0000 96%, #000) -5px -5px / 10px 10px;
}

.cc-hero__seal img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 14%;
	object-fit: contain;
	background: var(--ct-color-cream);
	border: 1px solid rgba(115, 44, 2, 0.22);
}

/* Etiqueta de preço */
.cc-home .cc-price-tag {
	position: absolute;
	z-index: 4;
	right: 0;
	bottom: 9%;
	padding: 14px 20px 14px 34px;
	border-radius: 4px 12px 12px 4px;
	background: #fffaf0;
	box-shadow: var(--ct-shadow);
	font-size: 13px;
	line-height: 1.25;
	color: var(--cc-text);
}

.cc-price-tag::first-line { font: 400 23px/1.1 var(--ct-font-hand); color: var(--cc-brown); }

.cc-price-tag::before {
	content: '';
	position: absolute;
	left: 12px;
	top: 50%;
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-radius: 50%;
	background: var(--ct-bg);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cc-price-tag strong { display: inline-block; margin: 4px 0 2px; font: 600 30px/1 var(--ct-font-display); color: var(--cc-ink); }
.cc-price-tag strong .amount,
.cc-price-tag strong bdi { font: inherit; color: inherit; }

/* --- Faixa --- */
.cc-ticker-wrap { overflow: hidden; background: var(--cc-brown); }

.cc-home ul.cc-ticker,
ul.cc-ticker {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 12px 0 9px;
	list-style: none;
	background: var(--cc-brown);
	color: var(--ct-color-cream);
	font: 400 19px/1.1 var(--ct-font-hand);
	white-space: nowrap;
}

ul.cc-ticker li { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; }
ul.cc-ticker li::after { content: '♡'; font-family: var(--ct-font); font-size: 20px; }

.cc-ticker-wrap ul.cc-ticker { animation: cc-tick 46s linear infinite; }

@keyframes cc-tick { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) { .cc-ticker-wrap ul.cc-ticker { animation: none; } }

/* --- O que vem na carta --- */
.cc-home .cc-cards { display: grid; grid-template-columns: repeat(var(--cc-n, 4), 1fr); gap: 26px; }

.cc-home .cc-card {
	position: relative;
	padding: 30px 26px 28px;
	border-radius: var(--cc-r);
	background: #fffaf0;
	border: 1px solid rgba(115, 44, 2, 0.08);
	box-shadow: var(--ct-shadow);
}

.cc-home .cc-card:nth-child(odd) { transform: rotate(-1deg); }
.cc-home .cc-card:nth-child(even) { transform: rotate(1.2deg) translateY(10px); }
.cc-card::before { top: -13px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg); }

.cc-home .cc-card__icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin-bottom: 18px !important;
	border-radius: 50%;
	background: var(--ct-color-cream);
}

.cc-card__icon img { width: 30px; height: 30px; }
.cc-home .cc-card__title { margin-bottom: 8px; }
.cc-card__text { font-size: 15px; }

.cc-home .cc-note { margin-top: 48px; text-align: center; font: 400 30px/1.2 var(--ct-font-hand); color: var(--cc-brown); }

/* --- Carta do momento --- */
.cc-edition { --cc-tint: #ebd5a8; }

.cc-home .cc-edition__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(36px, 5vw, 76px);
	align-items: center;
}

.cc-home .cc-edition__visual { position: relative; aspect-ratio: 1 / 0.92; }

.cc-home .cc-edition__photo { position: absolute !important; z-index: 1; top: 4%; left: 0; width: 88%; }
.cc-edition__photo img { aspect-ratio: 5 / 4; object-position: 24% 50%; }
.cc-edition__photo figcaption { left: 18px; text-align: left; font-size: 26px; bottom: 8px; }
.cc-edition__photo::before { top: -10px; left: 30%; transform: rotate(5deg); }

/* Fotos passando na polaroide (contei_hb_slides() + initSlides() no carta.js). Sem JS, rola com
   o dedo e encaixa em cada foto; com JS ganha setas (só com mouse) e bolinhas. */
.cc-slides { margin: 0; }
.cc-slides__view { position: relative; }
.cc-slides__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.cc-slides__track::-webkit-scrollbar { display: none; }
.cc-slides__track:focus-visible { outline: 2px solid var(--cc-brown); outline-offset: 3px; }
.cc-slides__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.cc-slides__slide img { -webkit-user-drag: none; user-select: none; }

.cc-slides__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 250, 240, 0.92);
	color: var(--cc-brown);
	box-shadow: 0 2px 8px rgba(58, 29, 11, 0.2);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}
.cc-slides__nav svg { width: 18px; height: 18px; }
.cc-slides__nav--prev { left: 10px; }
.cc-slides__nav--next { right: 10px; }
.cc-slides:hover .cc-slides__nav,
.cc-slides__nav:focus-visible { opacity: 1; }
.cc-slides:hover .cc-slides__nav[disabled] { opacity: 0.35; cursor: default; }
.cc-slides__nav:focus-visible { outline: 2px solid var(--cc-brown); outline-offset: 2px; }
@media (hover: none) { .cc-slides__nav { display: none; } }

/* À esquerda: o envelope (quando ligado) cobre o canto direito da foto. */
.cc-slides__dots {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 2;
	display: flex;
	gap: 7px;
	padding: 6px 9px;
	border-radius: 999px;
	background: rgba(58, 29, 11, 0.38);
}
.cc-slides__dot {
	width: 7px;
	height: 7px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 250, 240, 0.55);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.cc-slides__dot { position: relative; }
.cc-slides__dot::before { content: ''; position: absolute; inset: -6px; }
.cc-slides__dot[aria-current="true"] { background: #fff; transform: scale(1.25); }
.cc-slides__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.cc-slides__track { scroll-behavior: auto; }
}

.cc-home .cc-edition__envelope {
	position: absolute !important;
	z-index: 2;
	right: -4%;
	bottom: -2%;
	width: 60%;
	transform: rotate(7deg);
	filter: drop-shadow(0 18px 18px rgba(58, 29, 11, 0.3));
}

.cc-edition__envelope img { width: 100%; height: auto; }

.cc-home .cc-edition__card {
	position: relative;
	padding: clamp(26px, 3.6vw, 46px);
	border-radius: var(--cc-r-lg);
	background: #fffaf0;
	box-shadow: var(--ct-shadow);
}

.cc-edition__card::before { top: -14px; right: 40px; transform: rotate(4deg); }

.cc-home .cc-edition__title { font-size: clamp(32px, 3.2vw, 44px); font-weight: 600; }
.cc-home .cc-edition__text { margin-top: 12px; }

.cc-home ul.cc-contents {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 18px;
	margin: 22px 0 26px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.35;
}

.cc-home .cc-more { margin-top: 16px; }
.cc-home .cc-kit { margin: -12px 0 22px; font: 400 25px/1.1 var(--ct-font-hand); color: var(--cc-brown); }
.cc-more a { font-weight: 600; font-size: 14.5px; color: var(--cc-ink); text-decoration: none; }
.cc-more a:hover { color: var(--cc-brown); text-decoration: underline; }

/* --- Como funciona --- */
.cc-home .cc-steps { position: relative; display: grid; grid-template-columns: repeat(var(--cc-n, 3), 1fr); gap: 30px; }

.cc-home .cc-steps::before {
	content: '';
	position: absolute;
	left: 6%;
	right: 6%;
	top: 64px;
	border-top: 2px dashed rgba(115, 44, 2, 0.4);
}

.cc-home .cc-step {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	padding: 34px 30px 32px;
	border-radius: var(--cc-r);
	background: #fffaf0;
	box-shadow: var(--ct-shadow);
}

.cc-home .cc-step__n { font: italic 500 60px/1 var(--ct-font-display); color: var(--ct-caramel); }
.cc-home .cc-step__title { margin: 16px 0 8px; font-size: 23px; }
.cc-step__text { font-size: 15.5px; }

/* --- Planos --- */
.cc-plans { --cc-tint: #efdfbf; }

.cc-home .cc-plans__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	max-width: 940px;
	margin: 0 auto;
	align-items: stretch;
}

.cc-home .cc-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 40px 34px 34px;
	border-radius: var(--cc-r-lg);
	background: #fffaf0;
	box-shadow: var(--ct-shadow);
}

.cc-home .cc-plan__title { font-size: 27px; }
.cc-home .cc-plan__sub { margin-top: 4px; font-size: 15px; }

.cc-home .cc-plan__amount { margin: 22px 0 2px; font-size: 16px; color: var(--ct-color-muted); }
.cc-plan__amount strong { font: 600 50px/1 var(--ct-font-display); letter-spacing: -0.02em; color: var(--cc-ink); }
.cc-plan__amount strong .amount,
.cc-plan__amount strong bdi { font: inherit; color: inherit; }
.cc-plan__amount s { margin-left: 6px; font-size: 15px; }

.cc-home .cc-plan ul.cc-checks { display: grid; gap: 11px; margin: 24px 0 30px; flex: 1; align-content: start; font-size: 15px; }
.cc-home .cc-plan .cc-actions .wp-block-button,
.cc-home .cc-plan .cc-actions .wp-block-button__link { width: 100%; }

.cc-home .cc-plan--club { background: var(--cc-brown); color: #f0d9ad; }

.cc-home .cc-plan--club::after {
	content: '';
	position: absolute;
	inset: 10px;
	border: 1.5px dashed rgba(247, 230, 192, 0.38);
	border-radius: 10px;
	pointer-events: none;
}

.cc-home .cc-plan--club .cc-plan__title,
.cc-plan--club .cc-plan__amount strong { color: #fff6e3; }
.cc-home .cc-plan--club .cc-plan__amount { color: #d6bb8a; }
.cc-home .cc-plan--club ul.cc-checks li { color: #f0d9ad; }
.cc-home .cc-plan--club ul.cc-checks li::before { filter: brightness(0) saturate(100%) invert(87%) sepia(19%) saturate(707%) hue-rotate(345deg) brightness(97%); }

.cc-home .cc-plan--club .wp-block-button__link {
	position: relative;
	z-index: 1;
	background: var(--ct-color-cream);
	color: var(--cc-brown);
	outline-color: rgba(115, 44, 2, 0.35);
}

.cc-home .cc-plan__flag {
	position: absolute;
	z-index: 2;
	top: -16px;
	left: 50%;
	transform: translateX(-50%);
	padding: 6px 18px;
	border-radius: 4px;
	background: var(--ct-color-sand);
	box-shadow: 0 6px 12px -6px rgba(58, 29, 11, 0.4);
	font: 400 21px/1.1 var(--ct-font-hand);
	color: var(--cc-brown);
	white-space: nowrap;
}

.cc-home .cc-plans__foot { margin-top: 30px; text-align: center; font-size: 14.5px; }

/* Clube "em breve": aviso no lugar do preço (campo "Em breve" do card) */
.cc-home .cc-plan__amount--soon { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cc-plan__amount--soon strong { font-size: 44px; }
.cc-home .cc-plan__when { font: 400 25px/1.1 var(--ct-font-hand); color: var(--ct-color-sand); }
.cc-home .cc-plan:not(.cc-plan--club) .cc-plan__when { color: var(--cc-brown); }

/* --- Quem escreve --- */
.cc-home .cc-about__cols {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(36px, 6vw, 90px);
	align-items: center;
}

.cc-about__photo img { aspect-ratio: 4 / 5; object-position: 89% 40%; }
.cc-about__photo::before { top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.cc-about__photo figcaption { font-size: 21px; bottom: 14px; }

.cc-home .cc-about__text .cc-title { margin-bottom: 8px; }
.cc-home .cc-about__text > p:not(.cc-eyebrow) { margin-top: 16px; font-size: 17px; max-width: 58ch; }

.cc-home .cc-socials.wp-block-social-links { gap: 10px; margin-top: 26px; padding: 0; }

.cc-home .cc-socials.wp-block-social-links:not(.is-style-logos-only) .wp-social-link {
	margin: 0;
	background: transparent;
	color: var(--cc-brown);
	box-shadow: inset 0 0 0 1.5px var(--cc-brown);
}

.cc-home .cc-socials .wp-social-link a { padding: 12px; color: var(--cc-brown); }
.cc-home .cc-socials .wp-social-link svg { width: 20px; height: 20px; }
.cc-home .cc-socials .wp-social-link:hover { background: rgba(115, 44, 2, 0.08); transform: none; }

/* --- Dúvidas --- */
.cc-faq { --cc-tint: #fbf3e3; }

.cc-home .cc-faq__list { max-width: 840px; margin: 0 auto; }

.cc-home .wp-block-details {
	border-bottom: 1.5px dashed rgba(115, 44, 2, 0.3);
}

.cc-home .wp-block-details:first-child { border-top: 1.5px dashed rgba(115, 44, 2, 0.3); }

.cc-home .wp-block-details summary {
	position: relative;
	list-style: none;
	padding: 22px 50px 22px 4px;
	cursor: pointer;
	font: 500 21px/1.25 var(--ct-font-display);
	color: var(--cc-ink);
}

.cc-home .wp-block-details summary::-webkit-details-marker { display: none; }

.cc-home .wp-block-details summary::after {
	content: '';
	position: absolute;
	right: 4px;
	top: 50%;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	border-radius: 50%;
	background: var(--ct-color-cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23732c02' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 16px;
	transition: transform 0.2s;
}

.cc-home .wp-block-details[open] summary::after { transform: rotate(45deg); }
.cc-home .wp-block-details > p { padding: 0 4px 24px; font-size: 15.5px; max-width: 70ch; }

/* --- Novidades --- */
.cc-home .cc-news > .wp-block-group__inner-container,
.cc-home .cc-news:not(:has(> .wp-block-group__inner-container)) {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 30px;
	align-items: center;
}

.cc-home .cc-news {
	max-width: 900px;
	margin: 0 auto;
	padding: clamp(28px, 4vw, 48px);
	border: 11px solid transparent;
	border-radius: var(--cc-r-lg);
	background: linear-gradient(#fffaf0, #fffaf0) padding-box, repeating-linear-gradient(-45deg, #c8321f 0 14px, #fffaf0 14px 22px, #2f4f86 22px 36px, #fffaf0 36px 44px) border-box;
	box-shadow: var(--ct-shadow);
}

.cc-news__seal img { width: 112px; height: auto; }
.cc-home .cc-news__title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.08; }
.cc-home .cc-news__text { margin-top: 8px; }
.cc-home .cc-news__body .cc-actions,
.cc-news__form { margin-top: 20px; }

/* Formulário "seja avisado" (seção Novidades e janela do card do Clube) */
.cc-aviso { position: relative; margin-top: 20px; }
/* Grade: nome | sobrenome lado a lado; e-mail e botão ocupam a linha inteira, cada um na sua.
   No celular estreito (até 440 px), um campo por linha (regra mais abaixo). */
.cc-aviso__fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas: 'nome sobrenome' 'email email' 'btn btn';
	gap: 10px;
}
.cc-aviso__fields input[type='text'],
.cc-aviso__fields input[type='email'] { width: 100%; min-width: 0; min-height: 54px; margin: 0; } /* mesma altura do botão */
.cc-aviso__nome { grid-area: nome; }
.cc-aviso__sobrenome { grid-area: sobrenome; }
.cc-aviso__email { grid-area: email; }
.cc-aviso__btn { grid-area: btn; width: 100%; justify-content: center; }
.cc-aviso.is-busy .cc-aviso__btn { opacity: 0.6; pointer-events: none; }
.cc-aviso__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cc-aviso__consent { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ct-color-muted); }
.cc-aviso__error { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--ct-color-primary); }
.cc-aviso__done { margin: 0; font: 400 28px/1.2 var(--ct-font-hand); color: var(--cc-brown); }
.cc-aviso.is-sent .cc-aviso__fields,
.cc-aviso.is-sent .cc-aviso__consent,
.cc-aviso.is-sent .cc-aviso__error { display: none; }

.cc-aviso-modal .ct-modal__container { max-width: 560px; }
.cc-aviso-modal .ct-modal__wrapper {
	padding: 38px 34px 32px;
	border: 9px solid transparent;
	border-radius: var(--cc-r-lg);
	background: linear-gradient(#fffaf0, #fffaf0) padding-box, repeating-linear-gradient(-45deg, #c8321f 0 14px, #fffaf0 14px 22px, #2f4f86 22px 36px, #fffaf0 36px 44px) border-box;
	text-align: center;
}
.cc-aviso-modal .ct-modal__close { top: 16px; right: 16px; }
.cc-aviso-modal__seal { display: block; width: 84px; height: auto; margin: 0 auto 12px; }
.cc-aviso-modal .ct-modal__title { margin: 0 0 8px; padding: 0 16px; font: 600 26px/1.15 var(--ct-font-display); color: var(--cc-ink); }
.cc-aviso-modal__text { margin: 0; }
.cc-aviso-modal .cc-aviso { margin-top: 22px; }

/* --- Partes desligadas nos campos da página inicial --- */
/* Sobrou só uma coluna (sem foto, sem envelope, só um plano...). */
.cc-home .cc-hero__cols.cc-cols--single { grid-template-columns: minmax(0, 760px); }
.cc-home .cc-edition__cols.cc-cols--single { grid-template-columns: minmax(0, 680px); justify-content: center; }
.cc-home .cc-about__cols.cc-cols--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.cc-home .cc-plans__cols.cc-cols--single { grid-template-columns: minmax(0, 460px); justify-content: center; }

.cc-home .cc-news--no-seal > .wp-block-group__inner-container,
.cc-home .cc-news--no-seal:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; }

/* Etiqueta de preço sem o texto de cima: o preço não ganha a letra de mão. */
.cc-price-tag--no-label::first-line { font: inherit; color: inherit; }

/* --- Responsivo da home --- */
@media (max-width: 1000px) {
	.cc-home .cc-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.cc-home .cc-hero__cols,
	.cc-home .cc-edition__cols,
	.cc-home .cc-about__cols { grid-template-columns: 1fr; }
	.cc-home .cc-hero__visual,
	.cc-home .cc-edition__visual { max-width: 470px; width: 100%; margin: 0 auto; }
	.cc-home .cc-about__media { max-width: 400px; width: 100%; margin: 0 auto; }
}

@media (max-width: 860px) {
	.cc-home .cc-steps { grid-template-columns: 1fr; }
	.cc-home .cc-steps::before { display: none; }
}

@media (max-width: 760px) {
	.cc-home .cc-plans__cols { grid-template-columns: 1fr; gap: 36px; }
	/* No celular o clube vem primeiro, menos enquanto está "em breve": aí a compra única (o que
	   dá para comprar agora) fica em cima. */
	.cc-home .cc-plan--club:not(.cc-plan--soon) { order: -1; }
}

@media (max-width: 640px) {
	.cc-home .cc-news > .wp-block-group__inner-container,
	.cc-home .cc-news:not(:has(> .wp-block-group__inner-container)) { grid-template-columns: 1fr; text-align: center; }
	.cc-news__seal img { margin: 0 auto; }
	.cc-home .cc-news .cc-actions { justify-content: center; }
}

/* Celular estreito: um campo por linha ("Seu sobrenome" não cabe em meia largura). */
@media (max-width: 440px) {
	.cc-aviso__fields { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'nome' 'sobrenome' 'email' 'btn'; }
}

@media (max-width: 600px) {
	.cc-eyebrow,
	.cc-home .cc-eyebrow { font-size: 26px; }
}

@media (max-width: 560px) {
	.cc-home .cc-cards { grid-template-columns: 1fr; }
	.cc-hero__text .cc-actions .wp-block-button,
	.cc-hero__text .cc-actions .wp-block-button__link { width: 100%; }
	.cc-home .cc-hero__seal { width: 86px; }
	.cc-hero__visual::before { width: 120px; height: 58px; }
	.cc-price-tag strong { font-size: 24px; }
}

@media (max-width: 460px) {
	.cc-home ul.cc-contents { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Escolha compra única × clube (Contei Assinaturas) e botão de compra
   ========================================================================== */
.ct-sub-choice__title { margin-bottom: 12px; font-size: 15px; font-weight: 700; color: var(--cc-ink); }

.ct-sub-choice__option {
	margin-bottom: 14px;
	padding: 17px 18px;
	border: 1.5px solid rgba(115, 44, 2, 0.2);
	border-radius: var(--cc-r);
	background: #fffaf0;
}

.ct-sub-choice__option:hover { border-color: rgba(115, 44, 2, 0.4); }

.ct-sub-choice__option.is-selected {
	border-color: var(--cc-brown);
	background: #fff4dc;
	box-shadow: 0 0 0 3px rgba(115, 44, 2, 0.08);
}

.ct-sub-choice__dot { width: 22px; height: 22px; border: 2px solid rgba(115, 44, 2, 0.4); background: #fff; }
.ct-sub-choice__option.is-selected .ct-sub-choice__dot::after { width: 10px; height: 10px; }
.ct-sub-choice__label { font-size: 16px; font-weight: 700; color: var(--cc-ink); }
.ct-sub-choice__price { font-size: 16px; font-weight: 700; color: var(--cc-ink); }
.ct-sub-choice__price del { color: var(--ct-color-muted); font-weight: 400; }
.ct-sub-choice__desc { font-size: 14px; color: var(--cc-text); }

.ct-sub-choice__badge {
	padding: 6px 10px;
	background: var(--ct-color-cream);
	color: var(--cc-brown);
	font-size: 12px;
	font-weight: 600;
}

.ct-sub-choice__note { font-size: 13px; color: var(--ct-color-muted); }

.single_add_to_cart_button.ct-atc {
	width: 100%;
	min-height: 56px;
	border-radius: 999px;
	background: var(--cc-brown);
	color: #fbefd5;
	font-size: 15.5px;
	outline: 1px dashed rgba(251, 239, 213, 0.25);
	outline-offset: -4px;
}

.single_add_to_cart_button.ct-atc:hover { background: #5a2201; color: #fbefd5; }

.cc-buy .ct-sub-choice { margin-top: 0; }

/* Selo "Economize" (carrinho e mini-carrinho) */
.ct-price-saved {
	border: 0 !important;
	border-radius: 999px;
	background: var(--ct-color-cream);
	color: var(--cc-brown) !important;
	font-weight: 700;
}

/* O mini-carrinho já abre ao adicionar: sem o link "Ver carrinho" ao lado do botão */
.ct-atc-form a.added_to_cart { display: none; }

.woocommerce-mini-cart__buttons .ct-button { padding: 0 16px; font-size: 14px; white-space: nowrap; }

/* ==========================================================================
   Página do produto
   ========================================================================== */
.single-product .ct-site-content { padding: 30px 0 0; }

.ct-single-product .woocommerce-breadcrumb { color: var(--ct-color-muted); font-size: 13px; }
.ct-single-product .woocommerce-breadcrumb a { color: var(--ct-color-muted); }

.ct-gallery__main {
	border-radius: var(--cc-r-lg);
	background: #ecd8b0;
	box-shadow: var(--ct-shadow);
}

.ct-gallery__thumb {
	border-radius: 6px;
	background: var(--ct-color-cream);
	opacity: 0.65;
}

.ct-gallery__thumb.is-active { opacity: 1; outline: 2px solid var(--cc-ink); outline-offset: 2px; }

.ct-single-product__summary .product_title {
	font-family: var(--ct-font-display);
	font-size: clamp(32px, 3.4vw, 46px);
	font-weight: 500;
	line-height: 1.08;
	color: var(--cc-ink);
}

.ct-single-product__cat { color: var(--ct-color-muted); }

.ct-badge { border-radius: 999px; border-color: transparent; background: var(--ct-color-cream); color: var(--cc-brown); font-weight: 700; letter-spacing: 0.06em; }
.ct-badge--stock { background: var(--ct-color-cream); color: var(--cc-brown); }
.ct-badge--custom { background: var(--ct-color-primary); color: #fff; }

.ct-product-price .price { font-family: var(--ct-font-display); font-size: 32px; font-weight: 600; }
.ct-product-price .price ins { color: var(--cc-ink); }
.ct-product-price .price del { font-family: var(--ct-font); font-size: 17px; font-weight: 400; color: var(--ct-color-muted); }
.ct-sale-off { border-radius: 999px; background: var(--ct-color-primary); color: #fff; font-family: var(--ct-font); }

.ct-extra-links {
	padding-top: 20px;
	border-top: 1.5px dashed var(--ct-line);
	font-weight: 600;
	color: var(--cc-ink);
}

.ct-extra-link { color: var(--cc-ink); }

.ct-trust { border-radius: var(--cc-r); background: rgba(247, 230, 192, 0.55); border: 0; }

/* Calculadora de frete (plugin Melhor Envio, acima do botão de compra). O CSS do plugin é
   impresso depois do tema, por isso os seletores começam em .single-product. */
.single-product .me-cep-calc {
	--me-calc-border: 1.5px dashed var(--ct-line);
	--me-calc-radius: var(--cc-r);
	--me-calc-padding: 16px 18px;
	--me-calc-bg: rgba(247, 230, 192, 0.35);
	--me-calc-error-color: var(--ct-color-primary);
	margin: 0 0 18px;
}
.single-product .me-cep-calc__title { margin: 0 0 10px; font-family: var(--ct-font-display); font-size: 17px; font-weight: 600; color: var(--cc-ink); }
.single-product .me-cep-calc__input { max-width: 220px; }
.single-product .me-cep-calc__result { margin-top: 10px; }
.single-product .me-cep-calc__result:empty { display: none; }
.single-product .me-cep-calc__loading,
.single-product .me-cep-calc__error { font-size: 14px; }
.single-product .me-cep-calc__table { min-width: 0; font-size: 14px; }
.single-product .me-cep-calc__table thead { display: none; }
.single-product .me-cep-calc__table td {
	padding: 9px 10px 9px 0;
	border: 0;
	border-top: 1px dashed var(--ct-line);
	background: none;
	text-align: left;
	vertical-align: top;
}
.single-product .me-cep-calc__table tr:first-child td { border-top: 0; }
.single-product .me-cep-calc__table td:nth-child(2) { font-weight: 600; color: var(--cc-ink); }
.single-product .me-cep-calc__table td:nth-child(3) { color: var(--ct-color-muted); }
.single-product .me-cep-calc__table td:last-child { padding-right: 0; text-align: right; white-space: nowrap; font-weight: 700; color: var(--cc-ink); }
.single-product .me-cep-calc__table.is-no-company td:first-child { display: none; }
.single-product .me-cep-calc__note { color: var(--ct-color-muted); font-weight: 400; }

/* Folha da carta: "O que vem nesta carta" (descrição do produto) */
.cc-letter { --cc-tint: #ebd5a8; margin-top: 70px; padding: var(--cc-section) 0; }

/* Linhas do papel: começam no início do texto (background-origin: content-box), não na borda
   da folha, então caem sempre logo abaixo da escrita, qualquer que seja o padding (que muda
   no celular). Tudo dentro da folha anda de 36 em 36px (--cc-rule): texto, títulos, listas e
   espaços entre blocos. O que não é texto (foto, tabela, vídeo) é acertado pelo carta.js,
   que completa o espaço até a próxima linha. */
.cc-letter__sheet {
	--cc-rule: 36px;
	--cc-rule-y: 26px; /* altura da linha dentro de cada linha de texto (logo abaixo da base das letras) */
	--cc-rule-color: rgba(115, 44, 2, 0.07);
	--cc-margin-x: 72px; /* margem vermelha */
	position: relative;
	max-width: 980px;
	margin: 0 auto;
	padding: 52px 56px 48px 104px;
	background-color: #fffdf6;
	background-image:
		linear-gradient(90deg, transparent var(--cc-margin-x), rgba(219, 18, 21, 0.35) var(--cc-margin-x) calc(var(--cc-margin-x) + 2px), transparent calc(var(--cc-margin-x) + 2px)),
		linear-gradient(transparent var(--cc-rule-y), var(--cc-rule-color) var(--cc-rule-y) calc(var(--cc-rule-y) + 1px), transparent calc(var(--cc-rule-y) + 1px));
	background-origin: border-box, content-box;
	background-size: 100% 100%, 100% var(--cc-rule);
	background-repeat: no-repeat, repeat;
	box-shadow: var(--ct-shadow);
	font-size: 16px;
	line-height: var(--cc-rule);
	color: var(--cc-ink);
}

.cc-letter__sheet::before { top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.cc-letter__sheet * { line-height: var(--cc-rule) !important; }
.cc-letter__sheet > *,
.cc-letter__sheet .em-col > * { margin-top: 0 !important; }
.cc-letter__sheet p,
.cc-letter__sheet figure,
.cc-letter__sheet blockquote,
.cc-letter__sheet table,
.cc-letter__sheet hr,
.cc-letter__sheet .wp-block-image,
.cc-letter__sheet .wp-block-embed { margin: 0 0 var(--cc-rule) !important; }
.cc-letter__sheet hr { height: 0; border: 0; }
.cc-letter__sheet h1,
.cc-letter__sheet h2,
.cc-letter__sheet h3,
.cc-letter__sheet h4,
.cc-letter__sheet h5,
.cc-letter__sheet h6 { margin: 0 !important; padding: 0 !important; font-family: var(--ct-font-display); font-size: 22px !important; font-weight: 600 !important; color: var(--cc-ink); }
.cc-letter__sheet ul,
.cc-letter__sheet ol { margin: 0 !important; padding: 0; list-style: none; }
.cc-letter__sheet li { position: relative; padding-left: 28px; }
.cc-letter__sheet li::before {
	content: '';
	position: absolute;
	left: 0;
	top: calc((var(--cc-rule) - 18px) / 2);
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23732c02' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 9.5 17 19 7'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cc-letter__sheet .em-row,
.cc-letter__sheet .em-col { display: block; width: auto; max-width: none; padding: 0; margin: 0; }

.cc-letter .cc-section-head { margin-bottom: 40px; }

/* "cada kit é único" no fim da folha (Personalizar > Contei > Página de produto) */
.cc-letter__sheet > .cc-letter__kit { margin-top: var(--cc-rule) !important; }
.cc-letter__sheet .cc-letter__kit-title { margin: 0 !important; font: 400 26px var(--ct-font-hand); color: var(--cc-brown); }
.cc-letter__sheet .cc-letter__kit-text { margin: 0 !important; color: var(--ct-color-muted); }

@media (max-width: 860px) {
	.cc-letter__sheet {
		--cc-margin-x: 44px;
		--cc-rule: 24px; /* no celular as linhas quebram mais: entrelinha mais justa */
		--cc-rule-y: 20px;
		padding: 40px 22px 36px 66px;
	}
}

/* ==========================================================================
   Carrinho
   ========================================================================== */
.cc-steps-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ct-color-muted);
}

.cc-steps-bar li { display: flex; align-items: center; gap: 8px; }
.cc-steps-bar li + li::before { content: ''; width: 26px; border-top: 1.5px dashed currentColor; opacity: 0.5; }
.cc-steps-bar__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; }
.cc-steps-bar .is-current { color: var(--cc-ink); }
.cc-steps-bar .is-current .cc-steps-bar__n { background: var(--cc-brown); border-color: var(--cc-brown); color: #fbefd5; }

.ct-cart .woocommerce-cart-form {
	padding: 30px;
	border-radius: var(--cc-r-lg);
	background: #fffaf0;
	box-shadow: var(--ct-shadow);
}

table.shop_table.cart th { color: var(--ct-color-muted); font-weight: 600; border-color: var(--ct-line); }
table.shop_table.cart td { border-color: var(--ct-line); }
table.shop_table.cart td.product-thumbnail img { border-radius: 6px; background: var(--ct-color-cream); }
table.shop_table.cart td.product-name > a { font-family: var(--ct-font-display); font-size: 18px; font-weight: 600; color: var(--cc-ink); }

.ct-cart-notes label { font-weight: 700; color: var(--cc-ink); }

.ct-cart-notes textarea {
	border: 1.5px solid rgba(115, 44, 2, 0.25);
	border-radius: var(--cc-r);
	background: #fffdf6 repeating-linear-gradient(transparent 0 31px, rgba(115, 44, 2, 0.15) 31px 32px);
	background-attachment: local;
	font: 400 21px/32px var(--ct-font-hand);
	color: var(--cc-ink);
	padding-top: 4px;
}

/* Resumo como recibo (borda serrilhada embaixo) */
.ct-cart .cart-collaterals { filter: drop-shadow(0 16px 18px rgba(58, 29, 11, 0.18)); }

.cart_totals {
	padding: 30px 30px 48px;
	border-radius: var(--cc-r-lg) var(--cc-r-lg) 0 0;
	background: #fffaf0;
	-webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%;
	mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%;
}

.cart_totals h2 { font-family: var(--ct-font-display); font-size: 24px; font-weight: 500; color: var(--cc-ink); }
.cart_totals table td,
.cart_totals table th { border-color: var(--ct-line); }
.cart_totals tr.order-total td,
.cart_totals tr.order-total th { font-family: var(--ct-font-display); font-size: 22px; color: var(--cc-ink); border-top: 1.5px dashed rgba(115, 44, 2, 0.4); }

.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; }

/* ==========================================================================
   Mini-carrinho
   ========================================================================== */
.ct-mini-cart-item__thumb img { border-radius: 6px; background: var(--ct-color-cream); }
.ct-mini-cart-item__name a { font-family: var(--ct-font-display); font-weight: 600; color: var(--cc-ink); }
.ct-mini-cart__footer { border-top: 1.5px dashed var(--ct-line); }
.woocommerce-mini-cart__total { color: var(--cc-ink); }

/* Etiqueta "Compra única" / "Clube Contei" (carrinho, mini-carrinho, checkout) */
.ct-sub-mode { border-radius: 999px; background: var(--ct-color-cream); color: var(--cc-brown); font-weight: 600; }
.ct-sub-mode--clube { background: var(--cc-brown); color: #fbefd5; }

/* ==========================================================================
   Loja, conta e páginas
   ========================================================================== */
.ct-product-card__image,
.products .product img { border-radius: var(--cc-r-lg); }

.woocommerce-MyAccount-navigation a { color: var(--cc-ink); }

.ct-entry-content--narrow h1,
.ct-entry-content--narrow h2,
.ct-entry-content--narrow h3 { font-family: var(--ct-font-display); }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error { border-radius: var(--cc-r); }

/* ==========================================================================
   Responsivo geral
   ========================================================================== */
@media (max-width: 1199px) {
	.ct-header__mobile .ct-header__bar { border-bottom: 1.5px dashed var(--ct-line); }
}

@media (max-width: 767px) {
	.ct-cart .woocommerce-cart-form { padding: 18px; }
	.cart_totals { padding: 24px 20px 44px; }
}
