/* Revista Aggily: preta, fina e elegante (marfim + filetes dourados). Tamanhos das páginas em cqw (escalam com a página).
 * As fotos dos produtos ficam como vieram: moldura clara, object-fit contain, sem filtro. */
:root {
	--preto: #0a0908;
	--folha: #0e0d0b;
	--folha2: #131210;
	--marfim: #efe7da;
	--texto: #b9ae9d;
	--suave: #7f7568;
	--ouro: #c9ad7f;
	--ouro-claro: #e2cda5;
	--fio: rgba(201, 173, 127, .38);
	--fio-fraco: rgba(201, 173, 127, .16);
	--serif: 'Cormorant Garamond', Georgia, serif;
	--sans: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
	background: #050505;
	background-image: radial-gradient(ellipse at 50% 0%, rgba(201, 173, 127, .07), transparent 60%);
	color: var(--marfim);
	font-family: var(--sans);
	font-weight: 300;
	display: flex;
	flex-direction: column;
	min-height: 100svh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }

/* Barra do topo */
.topo { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 12px; }
.topo-logo { height: 24px; width: auto; opacity: .92; }
.topo-acoes { display: flex; gap: 8px; }
.t-btn { border: 1px solid var(--fio); background: transparent; color: var(--marfim); padding: 8px 16px; border-radius: 999px; font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; transition: border-color .25s, color .25s, background .25s; }
.t-btn:hover, .t-btn:focus-visible { border-color: var(--ouro); color: var(--ouro-claro); outline: none; }
.t-btn.wa { border-color: var(--ouro); color: var(--ouro-claro); }
.t-btn.wa:hover { background: var(--ouro); color: #0a0908; }

/* Palco */
.palco { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 8px; min-height: 0; }
.livro-wrap { width: min(1180px, 100%); flex: 1; display: flex; justify-content: center; }
.livro { width: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7)); }
.seta { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--fio); background: transparent; color: var(--ouro-claro); font-family: var(--serif); font-size: 26px; font-weight: 300; line-height: 1; display: grid; place-items: center; transition: border-color .25s, background .25s, transform .15s; }
.seta:hover { border-color: var(--ouro); background: rgba(201, 173, 127, .08); }
.seta:active { transform: scale(.94); }
.rodape { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 12px 16px 18px; color: var(--suave); font-size: 11px; letter-spacing: .24em; }
.rodape input { width: min(360px, 55vw); accent-color: var(--ouro); height: 2px; }

/* Página */
.page { background: var(--folha); overflow: hidden; }
.page-in { position: relative; width: 100%; height: 100%; container-type: size; overflow: hidden; color: var(--marfim); }
.page.p-prods .page-in, .page.p-cartela .page-in, .page.p-express .page-in, .page.intro .page-in {
	background: radial-gradient(ellipse at 50% -10%, var(--folha2) 0%, var(--folha) 55%, #090807 100%);
}
/* Moldura fina em toda página interna */
.page.p-prods .page-in::before, .page.p-cartela .page-in::before, .page.p-express .page-in::before, .page.intro .page-in::before {
	content: ''; position: absolute; inset: 2.6cqw; border: 1px solid var(--fio-fraco); pointer-events: none;
}
.stf__item.--left .page-in::after, .stf__item.--right .page-in::after { content: ''; position: absolute; top: 0; bottom: 0; width: 7cqw; pointer-events: none; z-index: 3; }
.stf__item.--left .page-in::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .45)); }
.stf__item.--right .page-in::after { left: 0; background: linear-gradient(-90deg, transparent, rgba(0, 0, 0, .45)); }

.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .78) 100%); }
.kicker { display: inline-block; font-family: var(--sans); font-size: 1.85cqw; letter-spacing: .48em; text-transform: uppercase; color: var(--ouro); font-weight: 400; }

/* Capa e contracapa */
.capa .page-in, .contra .page-in { background: var(--preto); color: var(--marfim); }
.capa .moldura, .contra .moldura { position: absolute; inset: 3.2cqw; border: 1px solid rgba(201, 173, 127, .55); pointer-events: none; }
.capa .moldura::after, .contra .moldura::after { content: ''; position: absolute; inset: 1.2cqw; border: 1px solid rgba(201, 173, 127, .2); }
.capa-txt { position: absolute; top: 10cqw; left: 0; right: 0; text-align: center; }
.capa-txt .logo, .contra-txt .logo { width: 46cqw; height: auto; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .6)); }
.capa-txt h1, .contra-txt h1 { font-family: var(--serif); font-weight: 300; font-size: 13cqw; margin: 0; letter-spacing: .2em; }
.capa-txt .sub { display: block; margin-top: 2.6cqw; font-size: 2cqw; letter-spacing: .7em; text-transform: uppercase; color: var(--ouro-claro); font-weight: 300; }
.capa-pe { position: absolute; bottom: 8.5cqw; left: 0; right: 0; text-align: center; }
.capa-pe span { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 7cqw; line-height: 1; letter-spacing: .02em; }
.capa-pe b { display: block; font-family: var(--serif); font-size: 12cqw; font-weight: 300; letter-spacing: .28em; line-height: 1.05; color: var(--ouro-claro); margin-right: -.28em; }
.capa-pe small { display: block; margin-top: 3cqw; font-size: 1.8cqw; letter-spacing: .42em; text-transform: uppercase; color: rgba(239, 231, 218, .7); font-weight: 300; }
.contra-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12cqw; gap: 4.4cqw; }
.contra-txt p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 6cqw; margin: 0; line-height: 1.15; }
.contra-txt .contatos { font-size: 1.9cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--texto); }
.contra .veu { background: rgba(0, 0, 0, .66); }

/* Botão: contorno dourado fino */
.btn { display: inline-block; background: transparent; color: var(--ouro-claro); border: 1px solid var(--ouro); text-decoration: none; font-weight: 400; font-size: 2.05cqw; letter-spacing: .32em; text-transform: uppercase; padding: 2.4cqw 5cqw; border-radius: 999px; transition: background .25s, color .25s, transform .15s; }
.btn:hover { background: var(--ouro); color: #0a0908; }
.btn:active { transform: scale(.97); }

/* Apresentação + sumário */
.intro-in { position: relative; padding: 11cqw 10cqw 9cqw; height: 100%; display: flex; flex-direction: column; }
.intro-in h2 { font-family: var(--serif); font-size: 7.6cqw; line-height: 1.04; margin: 2.6cqw 0 3.6cqw; font-weight: 300; color: var(--marfim); }
.intro-in > p { font-size: 2.45cqw; line-height: 1.85; color: var(--texto); margin: 0; font-weight: 300; }
.intro-in h3 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 5cqw; margin: 5cqw 0 2cqw; color: var(--ouro-claro); }
.sumario { list-style: none; margin: 0; padding: 0; flex: 1; }
.sumario a { display: flex; align-items: baseline; gap: 1.8cqw; padding: 1.2cqw 0; color: var(--marfim); text-decoration: none; font-size: 2.55cqw; font-weight: 300; letter-spacing: .06em; transition: color .2s; }
.sumario a i { flex: 1; border-bottom: 1px solid var(--fio-fraco); transform: translateY(-.7cqw); }
.sumario a b { font-family: var(--serif); font-weight: 400; font-size: 3.4cqw; color: var(--ouro); }
.sumario a:hover { color: var(--ouro-claro); }
.intro-in.boas { justify-content: flex-end; }
.intro-in.boas:not(:has(.intro-foto)) { justify-content: center; }
.intro-in.boas:not(:has(.intro-foto))::before { display: none; }
.intro-foto { position: absolute; top: 0; left: 0; right: 0; height: 52%; width: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.intro-in.boas::before { content: ''; position: absolute; top: 52%; left: 10cqw; width: 12cqw; height: 1px; background: var(--ouro); margin-top: 5cqw; }
.intro-in h3:first-of-type { margin-top: 2cqw; font-size: 7.6cqw; }
.intro-in .dica { font-size: 2cqw; color: var(--suave); font-style: italic; margin-top: 2.4cqw; letter-spacing: .04em; }

/* Abertura da linha: foto inteira, véu preto, título fino */
.opener { position: absolute; inset: 0; background: var(--preto); color: var(--marfim); }
.opener.sem-foto { background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--lc) 35%, #111) 0%, #0a0908 70%); }
.opener .veu { background: linear-gradient(180deg, rgba(0, 0, 0, .1) 35%, rgba(5, 5, 5, .92) 100%); }
.opener::after { content: ''; position: absolute; inset: 3.2cqw; border: 1px solid rgba(201, 173, 127, .28); pointer-events: none; }
.op-txt { position: absolute; left: 9cqw; right: 9cqw; bottom: 10cqw; }
.op-txt .kicker { color: var(--ouro-claro); }
.op-txt .kicker::before { content: ''; display: inline-block; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--lc); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); margin-right: 1.6cqw; vertical-align: middle; transform: translateY(-.2cqw); }
.op-txt h2 { font-family: var(--serif); font-weight: 300; font-size: 11cqw; line-height: .98; margin: 2cqw 0 3cqw; letter-spacing: .01em; }
.op-txt .filete { display: block; width: 12cqw; height: 1px; background: var(--ouro); margin-bottom: 2.8cqw; }
.op-txt p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 4.2cqw; margin: 0 0 2.4cqw; line-height: 1.25; color: #e6dccb; }
.op-txt small { font-size: 1.8cqw; letter-spacing: .42em; text-transform: uppercase; color: var(--texto); }

/* Página de respiro */
.respiro-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--folha); }
.respiro-in span { font-family: var(--serif); font-weight: 300; font-size: 12cqw; letter-spacing: .2em; color: var(--ouro-claro); }
.respiro-in em { font-size: 1.9cqw; letter-spacing: .6em; text-transform: uppercase; color: var(--suave); font-style: normal; }

/* Cabeçalho e rodapé das páginas internas */
.cab { position: absolute; top: 0; left: 0; right: 0; padding: 7cqw 7.5cqw 0; display: flex; align-items: baseline; justify-content: space-between; gap: 3cqw; }
.cab::after { content: ''; position: absolute; left: 7.5cqw; right: 7.5cqw; top: 14.2cqw; height: 1px; background: linear-gradient(90deg, var(--ouro), var(--fio-fraco) 70%, transparent); }
.cab span { font-family: var(--serif); font-weight: 300; font-size: 5.6cqw; color: var(--marfim); line-height: 1; letter-spacing: .02em; }
.cab span::before { content: ''; display: inline-block; width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: var(--lc); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); margin-right: 1.8cqw; vertical-align: middle; transform: translateY(-.4cqw); }
.cab em { font-family: var(--serif); font-weight: 300; font-size: 3cqw; color: var(--texto); text-align: right; }
.folio { position: absolute; left: 7.5cqw; right: 7.5cqw; bottom: 4.6cqw; display: flex; justify-content: space-between; align-items: baseline; font-size: 1.6cqw; letter-spacing: .36em; text-transform: uppercase; color: var(--suave); border-top: 1px solid var(--fio-fraco); padding-top: 1.6cqw; }
.folio b { font-family: var(--serif); font-weight: 400; font-size: 2.8cqw; color: var(--ouro); letter-spacing: .05em; }

/* Grade de produtos */
.grade { position: absolute; top: 17.6cqw; bottom: 11.5cqw; left: 7.5cqw; right: 7.5cqw; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4cqw 3.6cqw; }
.n1 .grade { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.n2 .grade { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
.prod { display: flex; flex-direction: column; min-height: 0; cursor: pointer; }
.n2 .prod { flex-direction: row; gap: 4cqw; }
/* Moldura da foto: clara (as fotos têm fundo branco), cantos discretos e filete dourado por dentro */
.prod-foto { flex: 1; min-height: 0; background: #fbfaf7; border-radius: .6cqw; display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .45); }
.prod-foto::after { content: ''; position: absolute; inset: 1cqw; border: 1px solid rgba(201, 173, 127, .35); pointer-events: none; }
.n2 .prod-foto { flex: 0 0 46%; }
.prod-foto img, .exp-foto img { position: absolute; top: 2cqw; left: 2cqw; width: calc(100% - 4cqw); height: calc(100% - 4cqw); object-fit: contain; display: block; transition: transform .5s ease; }
.prod:hover .prod-foto img { transform: scale(1.025); }
.ph-vazio { font-family: var(--serif); font-size: 6cqw; color: #d9cbb4; }
.prod-txt { padding-top: 2cqw; }
.n2 .prod-txt { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0; }
.prod h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 3.35cqw; line-height: 1.12; color: var(--marfim); letter-spacing: .01em; }
.n2 .prod h4, .n1 .prod h4 { font-size: 4.8cqw; font-weight: 300; }
.prod .vol { display: block; font-size: 1.6cqw; letter-spacing: .3em; text-transform: uppercase; color: var(--ouro); margin-top: .8cqw; }
.prod p { margin: 1cqw 0 0; font-size: 1.95cqw; line-height: 1.6; color: var(--texto); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n2 .prod p, .n1 .prod p { font-size: 2.45cqw; -webkit-line-clamp: 6; }
.prod .ver { display: inline-block; margin-top: 1.2cqw; font-size: 1.55cqw; letter-spacing: .34em; text-transform: uppercase; color: var(--ouro-claro); padding-bottom: .3cqw; border-bottom: 1px solid var(--fio); transition: border-color .2s; }
.prod:hover .ver { border-color: var(--ouro); }

/* Aggi Express */
.exp { position: absolute; top: 17.6cqw; bottom: 11.5cqw; left: 7.5cqw; right: 7.5cqw; display: flex; flex-direction: column; gap: 3.4cqw; }
.exp-foto { flex: 1; min-height: 0; background: #fbfaf7; border-radius: .6cqw; display: grid; place-items: center; cursor: pointer; position: relative; overflow: hidden; box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .45); }
.exp-foto::after { content: ''; position: absolute; inset: 1cqw; border: 1px solid rgba(201, 173, 127, .35); pointer-events: none; }
.exp-txt h3 { font-family: var(--serif); font-weight: 300; font-size: 6.4cqw; margin: 0 0 2cqw; color: var(--marfim); }
.exp-txt ul { list-style: none; margin: 0 0 2.4cqw; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.exp-txt li { border-top: 1px solid var(--ouro); padding-top: 1.6cqw; }
.exp-txt li b { display: block; font-family: var(--serif); font-weight: 400; font-size: 3.7cqw; color: var(--ouro-claro); }
.exp-txt li span { font-size: 1.9cqw; line-height: 1.55; color: var(--texto); }
.exp-txt .nota { font-size: 1.8cqw; color: var(--suave); margin: 0 0 2.6cqw; font-style: italic; }

/* Cartela oficial Aggy Color: mechas reais recortadas do PDF da marca */
.cartela { position: absolute; top: 16.8cqw; bottom: 14.6cqw; left: 7cqw; right: 7cqw; display: flex; flex-wrap: wrap; align-content: space-between; column-gap: 2.6cqw; row-gap: 1.4cqw; }
.grupo { max-width: 100%; }
.grupo h5 { margin: 0 0 1cqw; font-family: var(--sans); font-weight: 400; font-size: 1.55cqw; letter-spacing: .36em; text-transform: uppercase; color: var(--ouro); }
.grupo.novo h5::after { content: 'novo'; margin-left: 1.2cqw; padding: .2cqw 1cqw; border: 1px solid var(--ouro); border-radius: 99px; font-size: 1.25cqw; letter-spacing: .2em; color: var(--ouro-claro); }
.mechas { display: flex; flex-wrap: wrap; gap: 1.2cqw 1cqw; }
.mecha { width: 10.6cqw; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: .5cqw; }
.mecha img { width: 10.6cqw; height: 10.6cqw; object-fit: cover; border-radius: .5cqw; display: block; background: #1a1714; box-shadow: 0 0 0 1px rgba(201, 173, 127, .28), 0 .8cqw 1.6cqw rgba(0, 0, 0, .5); transition: transform .3s ease, box-shadow .3s ease; }
.mecha:hover img { transform: translateY(-.4cqw); box-shadow: 0 0 0 1px var(--ouro), 0 1.2cqw 2.4cqw rgba(0, 0, 0, .6); }
.mecha b { font-family: var(--serif); font-weight: 500; font-size: 2.4cqw; color: var(--ouro-claro); line-height: 1; margin-top: .3cqw; }
.mecha small { font-size: 1.4cqw; line-height: 1.3; color: var(--texto); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.p-cartela .aviso { position: absolute; left: 7cqw; right: 7cqw; bottom: 11cqw; margin: 0; font-size: 1.6cqw; font-style: italic; color: var(--suave); }
/* Janela do tom: mecha grande em fundo escuro */
.modal-box.tom-box .m-foto { background: #0b0a09; }
.modal-box.tom-box .m-foto > img { border-radius: 6px; box-shadow: 0 0 0 1px var(--fio); max-height: 60svh; }

/* Janela de detalhes (preta, foto em moldura clara) */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .82); display: grid; place-items: center; padding: 16px; z-index: 50; backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-box { background: #0e0d0b; color: var(--marfim); width: min(900px, 100%); max-height: 92svh; overflow: auto; border-radius: 4px; border: 1px solid var(--fio); display: grid; grid-template-columns: 1fr 1fr; position: relative; box-shadow: 0 40px 100px rgba(0, 0, 0, .8); animation: entra .3s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fechar { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--fio); background: rgba(10, 9, 8, .8); color: var(--ouro-claro); font-family: var(--serif); font-size: 24px; font-weight: 300; line-height: 1; z-index: 2; transition: border-color .2s; }
.fechar:hover { border-color: var(--ouro); }
.m-foto { background: #fbfaf7; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; }
.m-foto > img { max-width: 100%; max-height: 52svh; object-fit: contain; }
.m-mini { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.m-mini img { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid #e3d9c8; border-radius: 3px; cursor: pointer; padding: 3px; }
.m-mini img.on { border-color: var(--ouro); }
.m-txt { padding: 34px 30px; }
.m-txt .kicker { font-size: 10px; }
.m-txt h3 { font-family: var(--serif); font-size: 32px; font-weight: 300; line-height: 1.08; margin: 10px 0 6px; }
.m-txt .vol { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ouro); margin-bottom: 14px; }
#m-texto { font-size: 13.5px; line-height: 1.8; color: var(--texto); }
#m-texto p { margin: 0 0 10px; }
#m-texto strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--marfim); margin-top: 16px; }
.m-txt .btn { font-size: 11px; padding: 14px 24px; margin-top: 18px; }

/* Sem o folheador (sem JavaScript ou erro): páginas uma embaixo da outra */
.livro.lista { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0 30px; filter: none; }
.livro.lista .page { width: min(560px, 100%); aspect-ratio: 5 / 7; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }

@media (max-width: 760px) {
	.seta { position: fixed; bottom: 60px; z-index: 5; width: 44px; height: 44px; background: rgba(5, 5, 5, .7); }
	.seta.ant { left: 12px; }
	.seta.prox { right: 12px; }
	.palco { padding: 0 10px; }
	.modal-box { grid-template-columns: 1fr; }
	.m-foto > img { max-height: 38svh; }
	.m-txt { padding: 22px 20px 26px; }
	.m-txt h3 { font-size: 26px; }
	.topo-logo { height: 20px; }
	.t-btn { padding: 7px 12px; letter-spacing: .16em; }
	/* página única no celular: letras um pouco maiores */
	.prod p { font-size: 2.2cqw; }
	.prod h4 { font-size: 3.6cqw; }
}
@media (prefers-reduced-motion: reduce) {
	.modal-box { animation: none; }
	.prod-foto img { transition: none; }
}
