/* FotoDSurf – visual próprio do app instalado (html.fds-app). No navegador nada disso aparece. */

/* Barra de baixo e botão da sequência: escondidos fora do app */
.fds-app-barra, .fds-lightbox .fds-lb-acoes > .fds-lb-seq { display: none !important; }

html.fds-app {
	--fds-barra-app: calc(60px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Topo: só o logo pequeno ---------- */
html.fds-app .fds-cabecalho-site { position: sticky; top: 0; z-index: 9000; padding-top: 6px !important; padding-bottom: 6px !important; padding-top: max(6px, env(safe-area-inset-top, 0px)) !important; background: #000 !important; border-bottom: 1px solid #1e1e1e; }
html.fds-app .fds-cabecalho-linha > :not(.wp-block-site-logo) { display: none !important; }
html.fds-app .fds-cabecalho-site .wp-block-site-logo img { width: 60px !important; height: auto !important; }
html.fds-app .fds-cabecalho-linha { justify-content: center !important; }

/* ---------- Sem rodapé ---------- */
html.fds-app .wp-site-blocks > footer, html.fds-app .wp-site-blocks > .wp-block-template-part:last-child:not(header) { display: none !important; }
html.fds-app body { padding-bottom: var(--fds-barra-app); }
html.fds-app body.fds-tela-cheia .wp-site-blocks { min-height: calc(100svh - var(--fds-barra-app)) !important; }

/* ---------- Barra fixa embaixo ---------- */
html.fds-app .fds-app-barra {
	display: grid !important; grid-template-columns: repeat(5, 1fr);
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9500;
	height: var(--fds-barra-app); padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: border-box;
	background: #000; border-top: 1px solid #2a2a2a;
}
.fds-app-barra a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #a9aa98 !important; text-decoration: none !important; font-size: 11px; line-height: 1.1; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.fds-app-barra a svg { width: 26px; height: 26px; }
.fds-app-barra a .fds-shaka { width: 26px; height: 26px; }
.fds-app-barra a .fds-shaka-m { fill: none; stroke: currentColor; stroke-width: 1.5; }
.fds-app-barra a .fds-shaka-d { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; }
.fds-app-barra a.ativo { color: #fefefe !important; }
.fds-app-barra a.ativo::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; background: #6daabe; border-radius: 0 0 2px 2px; }
.fds-app-barra .fds-ab-num { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #ee4037; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.fds-app-barra .fds-ab-num[hidden] { display: none; }

/* Barra "Finalizar compra" da sessão fica logo acima da barra do app */
html.fds-app .fds-barra-carrinho { bottom: calc(var(--fds-barra-app) + 8px) !important; }

/* ---------- Feed (Início do app) ---------- */
.fds-feed { max-width: 560px !important; margin-left: auto !important; margin-right: auto !important; padding-top: 0 !important; }
.fds-stories { display: flex; gap: 12px; overflow-x: auto; padding: 12px 2px 14px; margin: 0 -2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-bottom: 1px solid #1e1e1e; }
.fds-stories::-webkit-scrollbar { display: none; }
.fds-story { flex: 0 0 auto; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none !important; color: #e4e5cf !important; }
.fds-story-img { width: 66px; height: 66px; border-radius: 6px; background: #1e1e1e center/cover no-repeat; border: 2px solid #2a2a2a; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: #6daabe; }
.fds-story-img svg { width: 32px; height: 32px; }
.fds-story.ativa .fds-story-img { border-color: #6daabe; box-shadow: 0 0 0 2px #000 inset; }
.fds-story small { font-size: 12px; line-height: 1.25; width: 74px; text-align: center; white-space: normal; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } /* nome comprido: 2 linhas, centralizado */
.fds-story.ativa small { color: #fefefe; font-weight: 700; }
.fds-posts { display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.fds-post { margin: 0; }
.fds-post header { display: flex; flex-direction: column; gap: 1px; padding: 0 2px 8px; }
.fds-post header strong { color: #fefefe; font-size: 16px; }
.fds-post header small { color: #a9aa98; font-size: 13px; }
.fds-post-img { display: block; border-radius: 6px; overflow: hidden; background: #121212; }
.fds-post-img img, .fds-post-sem { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.fds-post-txt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px 0; }
.fds-post-txt span { color: #e4e5cf; font-size: 15px; }
.fds-post-ver { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 6px; background: #6daabe; color: #000 !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.fds-feed-mais { display: flex; align-items: center; justify-content: center; min-height: 46px; margin: 24px 0 8px; border: 1.5px solid #e4e5cf; border-radius: 6px; color: #e4e5cf !important; font-weight: 700; text-decoration: none !important; }

/* ---------- Sessão no app: grade de 2 colunas, como um perfil do Instagram, sem botões ---------- */
html.fds-app .fds-sessao .fds-fotos { grid-template-columns: repeat(2, 1fr) !important; gap: 2px !important; }
html.fds-app .fds-sessao .fds-foto { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #121212; }
html.fds-app .fds-sessao .fds-foto img { aspect-ratio: 1 / 1 !important; }
html.fds-app .fds-sessao .fds-foto figcaption { display: none !important; }
/* Favorita e no carrinho: só um selo (o toque na foto abre a janela com os botões) */
html.fds-app .fds-sessao .fds-foto .fds-fav { display: none !important; }
html.fds-app .fds-sessao .fds-foto.favorita .fds-fav { display: flex !important; width: 26px; height: 26px; right: 4px; top: 4px; pointer-events: none; }
html.fds-app .fds-sessao .fds-foto.favorita .fds-fav .fds-shaka { width: 17px; height: 17px; }
html.fds-app .fds-sessao .fds-foto.selecionada::after { content: "✓"; position: absolute; left: 4px; bottom: 4px; z-index: 3; width: 24px; height: 24px; border-radius: 6px; background: #6daabe; color: #000; font-size: 15px; font-weight: 800; line-height: 24px; text-align: center; pointer-events: none; }
html.fds-app .fds-sessao .fds-selo-onda { left: 4px; top: 4px; padding: 2px 7px; font-size: 11px; }

/* Foto ampliada no app: botão da sequência inteira (quando a foto faz parte de uma onda) */
html.fds-app .fds-lightbox .fds-lb-acoes > .fds-lb-seq:not([hidden]) { display: inline-flex !important; grid-column: 1 / -1; order: 3; background: transparent; color: #e4e5cf; border: 1.5px solid #e4e5cf; }
html.fds-app .fds-lightbox .fds-lb-acoes > .fds-lb-seq.no-carrinho { background: #e4e5cf; color: #000; }

/* ---------- Topo da sessão no app: enxuto, a grade aparece logo ---------- */
html.fds-app .fds-sessao { position: relative; }
html.fds-app .fds-sessao > .fds-migalha { display: none !important; }
html.fds-app .fds-sessao > h1.fds-titulo-sessao { text-align: left !important; font-size: 26px !important; margin: 4px 52px 2px 0 !important; line-height: 1.2 !important; }
html.fds-app .fds-sessao > .fds-info { display: block !important; padding: 0 !important; margin: 0 52px 12px 0 !important; background: none !important; border: 0 !important; text-align: left !important; font-size: 14px !important; line-height: 1.5; color: #a9aa98 !important; }
html.fds-app .fds-sessao > .fds-info > span { display: inline !important; }
html.fds-app .fds-sessao > .fds-info > span + span::before { content: " · "; }
html.fds-app .fds-sessao > .fds-info .fds-ic { display: none !important; }
/* Compartilhar vira um ícone redondo no canto */
html.fds-app .fds-sessao > .fds-compartilhar { position: absolute; top: 4px; right: 0; margin: 0 !important; }
html.fds-app .fds-sessao .fds-btn-compartilhar { width: 42px; height: 42px; padding: 0 !important; border-radius: 50% !important; justify-content: center; font-size: 0 !important; gap: 0 !important; min-height: 0 !important; }
html.fds-app .fds-sessao .fds-btn-compartilhar svg { width: 22px; height: 22px; }
/* Texto de entrega: uma linha curta */
html.fds-app .fds-sessao > .fds-dica { text-align: left !important; font-size: 13px !important; line-height: 1.45 !important; margin: 0 0 10px !important; opacity: .75; }
html.fds-app .fds-sessao > .fds-dica .fds-dica-ampliar { display: none !important; }

/* Buscar no app: começa direto em "Escolha a praia" (as últimas sessões já estão no Início) */
html.fds-app .fds-front > h2.fds-titulo:has(+ .fds-cards-grade.fds-uma-linha), html.fds-app .fds-front > .fds-cards-grade.fds-uma-linha { display: none !important; }

/* Conta e Gestão no app: atalhos Painel e Sair ao lado do "Olá" */
.fds-ola-app { display: none; }
html.fds-app .fds-ola-app { display: inline; }
html.fds-app .fds-ola-app a { margin-left: 14px; color: #6daabe !important; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Favoritas no app: tela própria, sem o topo da Conta ---------- */
.fds-favs-titulo-app { display: none; }
html.fds-app .fds-area:has(.fds-favs-pagina) > :is(.fds-ola, h1.fds-titulo-sessao, .fds-abas, .fds-nav) { display: none !important; }
html.fds-app .fds-favs-pagina .fds-favs-nota { display: none !important; }
html.fds-app .fds-favs-titulo-app { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 14px !important; font-size: 26px !important; line-height: 1.2; text-align: left !important; color: #fefefe; }
html.fds-app .fds-favs-titulo-app small { font-size: 15px; font-weight: 400; color: #a9aa98; }
html.fds-app .fds-favs-titulo-app:has(.fds-favs-total:empty) { display: none; } /* sem favoritas: só o quadro */
/* Grupo por sessão: cabeçalho curto e a grade de 2 colunas */
html.fds-app .fds-favs-grupo { padding: 0 !important; margin: 0 0 26px !important; background: none !important; border: 0 !important; }
html.fds-app .fds-favs-topo { margin-bottom: 8px !important; align-items: flex-end; }
html.fds-app .fds-favs-topo h2 { font-size: 17px !important; }
html.fds-app .fds-favs-topo small { font-size: 13px !important; }
html.fds-app .fds-favs-ver { padding: 0 !important; border: 0 !important; color: #6daabe !important; font-size: 14px !important; }
html.fds-app .fds-favs-fotos { grid-template-columns: repeat(2, 1fr) !important; gap: 2px !important; }
html.fds-app .fds-favs-fotos .fds-foto { position: relative; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #121212; padding: 0 !important; }
html.fds-app .fds-favs-fotos .fds-foto img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1 !important; object-fit: cover; border-radius: 0 !important; }
html.fds-app .fds-favs-fotos .fds-foto figcaption, html.fds-app .fds-favs-fotos .fds-foto > .fds-fav { display: none !important; }
html.fds-app .fds-favs-fotos .fds-foto.selecionada::after { content: "✓"; position: absolute; left: 4px; bottom: 4px; z-index: 3; width: 24px; height: 24px; border-radius: 6px; background: #6daabe; color: #000; font-size: 15px; font-weight: 800; line-height: 24px; text-align: center; pointer-events: none; }
html.fds-app .fds-favs-grupo .fds-add-grupo { margin-top: 10px !important; }
/* Foto ampliada das favoritas */
.fds-favs-lb .fds-lb-palco img { max-width: 100vw; max-height: calc(100svh - 190px); width: auto; height: auto; cursor: default; }
.fds-favs-lb .fds-lb-acoes > .fds-lb-add { grid-column: 1 / -1; }
.fds-favs-lb .fds-lb-fav { top: 14px; right: 14px; }
.fds-favs-lb [hidden] { display: none !important; }
html.fds-app .fds-favs-topo h2 { margin: 0 !important; line-height: 1.2 !important; }
html.fds-app .fds-favs-topo small { margin-top: 2px !important; line-height: 1.35 !important; }
html.fds-app .fds-favs-topo .fds-favs-n { display: none; } /* o total já está no título */

/* ---------- Margem lateral menor no app (celular): textos e botões a 12px, fotos de ponta a ponta ---------- */
@media (max-width: 781px) {
	html.fds-app body { --wp--style--root--padding-left: 12px !important; --wp--style--root--padding-right: 12px !important; --fds-margem-app: 12px; }
	html.fds-app main.fds-loja, html.fds-app body .fds-front.fds-largo, html.fds-app body .fds-front.fds-largo:not(.fds-area) { --fds-larg: calc(100vw - 2 * var(--fds-margem-app)) !important; }
	html.fds-app .fds-cabecalho-site { padding-left: var(--fds-margem-app) !important; padding-right: var(--fds-margem-app) !important; }
	html.fds-app .fds-sessao .fds-fotos, html.fds-app .fds-favs-fotos, html.fds-app .fds-post-img { margin-left: calc(-1 * var(--fds-margem-app)) !important; margin-right: calc(-1 * var(--fds-margem-app)) !important; }
	html.fds-app .fds-post-img { border-radius: 0 !important; }
}

/* ---------- Início do app: o 1º post (foto, preço e "Ver fotos") cabe inteiro na tela ---------- */
html.fds-app .wp-site-blocks > main:has(.fds-feed) { padding-top: 0 !important; }
html.fds-app .fds-stories { gap: 10px; padding: 12px 2px 12px; margin-bottom: 0; }
html.fds-app .fds-story { width: 74px; gap: 5px; }
html.fds-app .fds-story-img { width: 66px; height: 66px; }
html.fds-app .fds-story-img svg { width: 32px; height: 32px; }
html.fds-app .fds-story small { width: 74px; font-size: 12px; line-height: 1.2; overflow-wrap: normal; word-break: normal; }
html.fds-app .fds-posts { padding-top: 10px; }
html.fds-app .fds-post header { padding-bottom: 6px; }

/* ---------- Propaganda do app na Home (logo abaixo da foto de topo) ---------- */
.fds-app-promo[hidden], html.fds-app .fds-app-promo { display: none !important; }
.fds-app-promo { width: min(1200px, calc(100% - 2 * var(--wp--preset--spacing--40, 20px))); margin: 22px auto 0; box-sizing: border-box; }
.fds-app-promo-in { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; padding: 18px 16px; background: #121212; border: 1px solid #2a2a2a; border-radius: 6px; color: #e4e5cf; }
.fds-app-promo-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; padding: 0; border: 1px solid #2a2a2a; border-radius: 50%; background: #000; color: #a9aa98; font-size: 15px; line-height: 1; cursor: pointer; }
.fds-app-promo-cel { border: 4px solid #2a2a2a; border-radius: 16px; overflow: hidden; background: #000; align-self: start; }
.fds-app-promo-cel img { display: block; width: 100%; height: auto; }
.fds-app-promo-txt h2 { margin: 0 30px 10px 0 !important; color: #fefefe; font-size: 21px !important; line-height: 1.2 !important; text-align: left !important; }
.fds-app-promo-txt ul { list-style: none; margin: 0 0 14px; padding: 0; }
.fds-app-promo-txt ul li { position: relative; padding-left: 22px; margin: 0 0 6px; font-size: 15px; line-height: 1.35; }
.fds-app-promo-txt ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #6daabe; font-weight: 800; }
.fds-app-promo-txt .fds-app-acao { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 0 18px; border: 0; border-radius: 6px; background: #6daabe; color: #000; font-weight: 700; font-size: 16px; font-family: inherit; cursor: pointer; }
.fds-app-promo-txt .fds-app-acao[hidden] { display: none; }
.fds-app-promo .fds-app-txt { margin: 0 0 10px; font-size: 14px; color: #a9aa98; }
.fds-app-promo .fds-app-msg { margin: 8px 0 0; font-size: 14px; }
.fds-app-promo .fds-app-msg:empty { display: none; }
.fds-app-promo .fds-app-passos { grid-column: 1 / -1; margin-top: 10px; font-size: 14px; line-height: 1.45; }
.fds-app-promo .fds-app-passos ol { margin: 0; padding-left: 20px; }
.fds-app-promo .fds-app-passos li { margin-bottom: 6px; }
.fds-app-promo .fds-app-ic { display: inline-block; padding: 0 6px; border: 1px solid #2a2a2a; border-radius: 6px; background: #1e1e1e; }
.fds-app-promo-net { margin: -4px 0 14px; padding-top: 10px; border-top: 1px solid #2a2a2a; font-size: 13.5px; color: #a9aa98; }
.fds-app-promo-qr { display: none; }
/* PC: o botão dá lugar ao QR code (abrir no celular e instalar) */
@media (min-width: 782px) and (hover: hover) and (pointer: fine) {
	.fds-app-promo { margin-top: 32px; width: calc(100% - 2 * var(--fds-margem, 50px)); max-width: none; }
	.fds-app-promo-in { grid-template-columns: minmax(0, 480px) 150px 190px; justify-content: center; gap: 48px; padding: 26px 56px; }
	.fds-app-promo-cel { order: 2; }
	.fds-app-promo-txt { order: 1; }
	.fds-app-promo-qr { order: 3; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
	.fds-app-qr { width: 160px; height: 160px; padding: 0; border-radius: 6px; overflow: hidden; background: #fff; }
	.fds-app-qr svg { display: block; width: 100%; height: 100%; }
	.fds-app-promo-qr p { margin: 0; font-size: 14px; line-height: 1.4; color: #a9aa98; }
	.fds-app-promo-txt h2 { font-size: 30px !important; }
	.fds-app-promo-txt ul li { font-size: 17px; }
	.fds-app-promo-txt .fds-app-acao, .fds-app-promo .fds-app-msg, .fds-app-promo .fds-app-passos, .fds-app-promo .fds-app-txt { display: none !important; }
	.fds-app-promo-txt ul { margin-bottom: 14px; }
	.fds-app-promo-net { margin: 0; font-size: 15px; }
}
