:root { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; --space-1: 0.5rem; /* ~8 */ --space-2: 1rem; /* ~16 */ --space-3: 1.5rem; /* ~24 */ --space-4: 2rem; /* ~32 */ --radius-md: 0.75rem; /* 12 */ --radius-lg: 1rem; /* 16 */ --shadow-card: 0 0.35rem 1.1rem rgba(0, 0, 0, 0.06); --safe-bottom: 1.1rem; --tabbar-height: 5.75rem; --ease-ios: cubic-bezier(0.32, 0.72, 0, 1); --ease-spring: cubic-bezier(0.22, 1, 0.36, 1); --dur-fast: 0.18s; --dur-view: 0.36s; --dur-item: 0.34s; --duration-sheet: 0.44s; /* Fallback até o phone injetar data-theme (evita tema hardcoded brigando) */ --bg: #000000; --app-bg: #000000; --app-secondary: #1c1c1e; --card: #1c1c1e; --text: #f2f2f7; --phone-text-primary: #f2f2f7; --phone-text-emphasis: #ffffff; --phone-text-body: #aeaeb2; --phone-text-secondary: #8e8e93; --phone-text-tertiary: #636366; --phone-color-blue: #0a84ff; --phone-color-blue-soft: rgba(10, 132, 255, 0.18); --phone-color-red: #ff453a; --phone-color-border: rgba(84, 84, 88, 0.45); --phone-fill-secondary: rgba(118, 118, 128, 0.24); --tabbar-bg: rgba(28, 28, 30, 0.94); --tabbar-border: rgba(84, 84, 88, 0.55); --sheet-bg: #1c1c1e; --comment-card-bg: #2c2c2e; --q-answer-bg: rgba(10, 132, 255, 0.08); --q-answer-border: rgba(10, 132, 255, 0.55); --search-bg: rgba(118, 118, 128, 0.24); --overlay: rgba(0, 0, 0, 0.42); --action-sheet-bg: rgba(37, 37, 40, 0.94); --action-sheet-cancel-bg: rgba(37, 37, 40, 0.96); --action-sheet-separator: rgba(84, 84, 88, 0.65); --action-sheet-press: rgba(120, 120, 128, 0.28); --shadow-card: 0 0.4rem 1.15rem rgba(0, 0, 0, 0.35); color-scheme: dark; } html[data-theme="light"], body[data-theme="light"], .market-app[data-theme="light"], #app[data-theme="light"] { --bg: #f2f2f7; --app-bg: #f2f2f7; --app-secondary: #ffffff; --card: #ffffff; --text: #1c1c1e; --phone-text-primary: #1c1c1e; --phone-text-emphasis: #1c1c1e; --phone-text-body: #3a3a3c; --phone-text-secondary: #8e8e93; --phone-text-tertiary: #aeaeb2; --phone-color-blue: #007aff; --phone-color-blue-soft: rgba(0, 122, 255, 0.12); --phone-color-red: #ff3b30; --phone-color-border: rgba(60, 60, 67, 0.12); --phone-fill-secondary: rgba(118, 118, 128, 0.12); --tabbar-bg: rgba(249, 249, 249, 0.94); --tabbar-border: rgba(60, 60, 67, 0.18); --sheet-bg: #f2f2f7; --comment-card-bg: #ffffff; --q-answer-bg: rgba(0, 122, 255, 0.04); --q-answer-border: rgba(0, 122, 255, 0.45); --search-bg: rgba(118, 118, 128, 0.12); --overlay: rgba(0, 0, 0, 0.28); --action-sheet-bg: rgba(242, 242, 247, 0.94); --action-sheet-cancel-bg: rgba(255, 255, 255, 0.96); --action-sheet-separator: rgba(60, 60, 67, 0.29); --action-sheet-press: rgba(0, 0, 0, 0.08); --shadow-card: 0 0.4rem 1.15rem rgba(0, 0, 0, 0.05); color-scheme: light; } html[data-theme="dark"], body[data-theme="dark"], .market-app[data-theme="dark"], #app[data-theme="dark"], [data-theme="dark"] { --bg: #000000; --app-bg: #000000; --app-secondary: #1c1c1e; --card: #1c1c1e; --text: #f2f2f7; --phone-text-primary: #f2f2f7; --phone-text-emphasis: #ffffff; --phone-text-body: #aeaeb2; --phone-text-secondary: #8e8e93; --phone-text-tertiary: #636366; --phone-color-blue: #0a84ff; --phone-color-blue-soft: rgba(10, 132, 255, 0.18); --phone-color-red: #ff453a; --phone-color-border: rgba(84, 84, 88, 0.45); --phone-fill-secondary: rgba(118, 118, 128, 0.24); --tabbar-bg: rgba(28, 28, 30, 0.94); --tabbar-border: rgba(84, 84, 88, 0.55); --sheet-bg: #1c1c1e; --comment-card-bg: #2c2c2e; --q-answer-bg: rgba(10, 132, 255, 0.08); --q-answer-border: rgba(10, 132, 255, 0.55); --search-bg: rgba(118, 118, 128, 0.24); --overlay: rgba(0, 0, 0, 0.42); --action-sheet-bg: rgba(37, 37, 40, 0.94); --action-sheet-cancel-bg: rgba(37, 37, 40, 0.96); --action-sheet-separator: rgba(84, 84, 88, 0.65); --action-sheet-press: rgba(120, 120, 128, 0.28); --shadow-card: 0 0.4rem 1.15rem rgba(0, 0, 0, 0.35); color-scheme: dark; } * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent !important; } *:focus, *:focus-visible { outline: none !important; } html { font-size: calc((1vh + 1vw) * 1.214); } html, body { width: 100%; height: 100%; background: transparent; color: var(--text); overflow: hidden; } body { user-select: none; display: none; } html.in-phone { background: var(--bg); } body.in-phone { display: block; background: var(--bg); } button, input, textarea { appearance: none; -webkit-appearance: none; font: inherit; border: none; background: transparent; color: inherit; } .market-app { height: 100%; position: relative; overflow: hidden; background: var(--app-bg); } .screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--app-bg); } .screen:not(.overlay-screen) { opacity: 0; visibility: hidden; pointer-events: none; z-index: 1; will-change: transform, opacity; } .screen:not(.overlay-screen).is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 3; } .screen:not(.overlay-screen).tab-fade-in { animation: viewFadeIn 0.3s var(--ease-spring) both; z-index: 4; } .screen:not(.overlay-screen).tab-fade-out { animation: viewFadeOut 0.2s var(--ease-ios) both; z-index: 2; pointer-events: none; } .overlay-screen { z-index: 20; opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(100%, 0, 0); transition: none; } .overlay-screen.is-active { visibility: visible; pointer-events: auto; } .overlay-screen.is-open { opacity: 1; transform: translate3d(0, 0, 0); transition: transform var(--dur-view) var(--ease-ios), opacity 0.28s var(--ease-ios); } .overlay-screen.is-active:not(.is-open) { opacity: 0; transform: translate3d(100%, 0, 0); transition: transform var(--dur-view) var(--ease-ios), opacity 0.22s var(--ease-ios); } .screen:not(.overlay-screen).is-pushed { animation: viewPushOut var(--dur-view) var(--ease-ios) both; pointer-events: none; } .screen:not(.overlay-screen).is-restored { animation: viewPopIn var(--dur-view) var(--ease-ios) both; } @keyframes viewPushIn { from { opacity: 0.35; transform: translate3d(28%, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } } @keyframes viewPushOut { from { opacity: 1; transform: translate3d(0, 0, 0); } to { opacity: 0.55; transform: translate3d(-18%, 0, 0); } } @keyframes viewPopIn { from { opacity: 0.55; transform: translate3d(-18%, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } } @keyframes viewPopOut { from { opacity: 1; transform: translate3d(0, 0, 0); } to { opacity: 0.2; transform: translate3d(28%, 0, 0); } } @keyframes viewFadeIn { from { opacity: 0; transform: scale(0.985) translate3d(0, 0.4rem, 0); } to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); } } @keyframes viewFadeOut { from { opacity: 1; } to { opacity: 0; } } @keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 0.7rem, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } } @keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } } @keyframes rowIn { from { opacity: 0; transform: translate3d(0, 0.55rem, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } } @keyframes commentIn { from { opacity: 0; transform: translate3d(0, 0.55rem, 0) scale(0.96); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } } @keyframes commentPop { from { opacity: 0; transform: translate3d(0, 0.65rem, 0) scale(0.9); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } } @keyframes qMsgIn { from { opacity: 0; transform: translate3d(0, 0.45rem, 0) scale(0.97); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } } @keyframes qMsgPop { 0% { opacity: 0; transform: translate3d(0, 0.7rem, 0) scale(0.96); } 70% { opacity: 1; transform: translate3d(0, -0.08rem, 0) scale(1.01); } 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } } .card.card-enter { opacity: 0; animation: rowIn var(--dur-item) var(--ease-spring) both; animation-delay: var(--stagger, 0s); } .card.no-anim, .comment.no-anim, .q-item.no-anim, .detail-enter.no-anim { animation: none !important; opacity: 1 !important; transform: none !important; } .comment.comment-enter { opacity: 0; animation: commentIn var(--dur-item) var(--ease-spring) both; animation-delay: var(--stagger, 0s); } .comment.comment-enter-pop { animation: commentPop 0.32s var(--ease-spring) both; } .q-item.q-msg-enter { opacity: 0; animation: qMsgIn 0.3s var(--ease-spring) both; animation-delay: var(--stagger, 0s); } .q-item.q-msg-enter-pop { animation: qMsgPop 0.42s var(--ease-spring) both; } .detail-enter .carousel, .detail-enter .detail-header, .detail-enter .detail-seller-block, .detail-enter .detail-desc-block { opacity: 0; animation: fadeUp 0.38s var(--ease-spring) both; } .detail-enter .carousel { animation-delay: 0.02s; } .detail-enter .detail-header { animation-delay: 0.08s; } .detail-enter .detail-seller-block { animation-delay: 0.12s; } .detail-enter .detail-desc-block { animation-delay: 0.16s; } .empty.empty-enter, .q-empty.empty-enter { animation: fadeUp 0.36s var(--ease-spring) both; } .header { padding: 4.25rem var(--space-3) var(--space-2); flex-shrink: 0; } .header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-2); } .large-title { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--phone-text-primary); } .header-link { color: var(--phone-color-blue); font-size: 1.05rem; font-weight: 600; line-height: 1; cursor: pointer; padding: var(--space-1) 0.15rem; flex-shrink: 0; } .search-wrap { display: flex; align-items: center; gap: 0.55rem; margin-top: 0; padding: 0.7rem 0.9rem; border-radius: var(--radius-lg); background: var(--search-bg); } .search-icon { width: 1.05rem; height: 1.05rem; flex-shrink: 0; fill: var(--phone-text-secondary); opacity: 0.9; } .search-wrap input { flex: 1; min-width: 0; width: 100%; border-radius: 0; background: transparent; padding: 0; font-size: 1rem; font-weight: 400; color: var(--phone-text-primary); } .search-wrap input::placeholder { color: var(--phone-text-secondary); } .content { flex: 1; min-height: 0; position: relative; overflow: hidden; /* Padding fica no scroller absoluto — anúncios não “andam” quando a barra aparece */ padding: 0; } .content-scroll { --sb-size: 0.28rem; position: absolute; inset: 0; overflow-x: hidden; /* scroll fixo: largura dos anúncios não muda ao precisar de overflow */ overflow-y: scroll; /* Compensa a largura da barra: feed fica igual a padding simétrico sem scrollbar */ padding: 0 calc(var(--space-2) - var(--sb-size)) calc(var(--tabbar-height) + var(--space-2)) var(--space-2); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(60, 60, 67, 0.35) transparent; } .content-tab .content-scroll { padding-top: var(--space-1); } .content-scroll::-webkit-scrollbar { width: var(--sb-size); height: var(--sb-size); background: transparent; } .content-scroll::-webkit-scrollbar-track { background: transparent; margin: 0.4rem 0; } .content-scroll::-webkit-scrollbar-thumb { background-color: rgba(60, 60, 67, 0.35); border-radius: 999px; } .content-scroll::-webkit-scrollbar-thumb:hover { background-color: rgba(60, 60, 67, 0.5); } html[data-theme="dark"] .content-scroll, body[data-theme="dark"] .content-scroll, .market-app[data-theme="dark"] .content-scroll, #app[data-theme="dark"] .content-scroll { scrollbar-color: rgba(235, 235, 245, 0.35) transparent; } html[data-theme="dark"] .content-scroll::-webkit-scrollbar-thumb, body[data-theme="dark"] .content-scroll::-webkit-scrollbar-thumb, .market-app[data-theme="dark"] .content-scroll::-webkit-scrollbar-thumb, #app[data-theme="dark"] .content-scroll::-webkit-scrollbar-thumb { background-color: rgba(235, 235, 245, 0.32); } html[data-theme="dark"] .content-scroll::-webkit-scrollbar-thumb:hover, body[data-theme="dark"] .content-scroll::-webkit-scrollbar-thumb:hover, .market-app[data-theme="dark"] .content-scroll::-webkit-scrollbar-thumb:hover, #app[data-theme="dark"] .content-scroll::-webkit-scrollbar-thumb:hover { background-color: rgba(235, 235, 245, 0.48); } .detail-content, .create-content { padding: 0 var(--space-2) var(--space-3); } #viewDetail { overflow: hidden; --questions-bar-h: 2.35rem; } #viewDetail .detail-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } #viewDetail .detail-content { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: calc(var(--questions-bar-h) + 0.55rem); } #viewDetail .detail-content::-webkit-scrollbar { display: none; width: 0; height: 0; } #viewDetail .detail-top { flex: 0 0 auto; overflow: visible; } .detail-ask-footer { position: relative; z-index: 30; flex-shrink: 0; display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem var(--space-2) calc(var(--space-2) + var(--safe-bottom)); /* Fundo sólido: blur do footer borrava a última pergunta no CEF */ background: var(--app-secondary); -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0.5px solid var(--phone-color-border); } .detail-ask-footer input { flex: 1; min-width: 0; border-radius: var(--radius-lg); background: var(--search-bg); padding: 0.75rem 0.95rem; font-size: 0.95rem; color: var(--phone-text-primary); } .detail-ask-footer input::placeholder { color: var(--phone-text-secondary); } .detail-ask-footer button { flex-shrink: 0; color: var(--phone-color-blue); font-size: 0.95rem; font-weight: 700; cursor: pointer; padding: 0.35rem 0.15rem; } .comments-loading { opacity: 0.85; } /* Painel: fechado mostra só a aba embaixo; aberto a aba sobe e vira header */ .questions-panel { position: absolute; inset: 0; z-index: 22; pointer-events: none; overflow: hidden; } .questions-panel.is-open { pointer-events: auto; } .questions-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.28); opacity: 0; pointer-events: none; transition: opacity var(--duration-sheet) var(--ease-ios); } .questions-panel.is-open .questions-backdrop { opacity: 1; pointer-events: auto; } .questions-panel-card { position: absolute; left: 0; right: 0; bottom: 0; /* Não cobre a tela toda — deixa ~1/3 do anúncio visível em cima */ top: 32%; display: flex; flex-direction: column; background: var(--sheet-bg); border-radius: 0.85rem 0.85rem 0 0; box-shadow: 0 -0.35rem 1.4rem rgba(0, 0, 0, 0.12); transform: translate3d(0, calc(100% - var(--questions-bar-h)), 0); transition: transform var(--duration-sheet) var(--ease-spring); overflow: hidden; pointer-events: auto; will-change: transform; } [data-theme="dark"] .questions-panel-card { box-shadow: 0 -0.35rem 1.4rem rgba(0, 0, 0, 0.35); } .questions-panel.is-open .questions-panel-card { transform: translate3d(0, 0, 0); box-shadow: 0 -0.45rem 1.75rem rgba(0, 0, 0, 0.18); } [data-theme="dark"] .questions-panel.is-open .questions-panel-card { box-shadow: 0 -0.45rem 1.75rem rgba(0, 0, 0, 0.4); } .questions-bar { flex: 0 0 var(--questions-bar-h); height: var(--questions-bar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; width: 100%; padding: 0.3rem var(--space-2) 0.35rem; border: none; border-bottom: 0.5px solid transparent; background: var(--tabbar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: inherit; font: inherit; text-align: center; cursor: pointer; transition: background 0.16s ease, opacity 0.16s ease, border-color 0.2s ease; } .questions-panel.is-open .questions-bar { background: var(--app-secondary); border-bottom-color: var(--phone-color-border); -webkit-backdrop-filter: none; backdrop-filter: none; } .questions-bar-grabber { display: block; width: 2.15rem; height: 0.28rem; border-radius: 999px; background: rgba(60, 60, 67, 0.28); flex-shrink: 0; transition: background 0.2s ease; } [data-theme="dark"] .questions-bar-grabber { background: rgba(235, 235, 245, 0.32); } .questions-bar-title { font-size: 0.78rem; font-weight: 600; letter-spacing: -0.01em; color: var(--phone-text-secondary); line-height: 1; } .questions-bar:active { opacity: 0.72; } .questions-panel-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0.55rem 0.55rem 1.45rem; scrollbar-width: none; background: var(--sheet-bg); opacity: 0; pointer-events: none; transition: opacity 0.22s var(--ease-ios); } .questions-panel.is-open .questions-panel-body { opacity: 1; pointer-events: auto; } .questions-panel-body::-webkit-scrollbar { display: none; width: 0; height: 0; } /* Q&A público (estilo marketplace) */ .q-thread { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.1rem 0 0.35rem; min-height: 100%; } .q-item { display: flex; flex-direction: column; gap: 0.38rem; width: 100%; max-width: 100%; box-sizing: border-box; padding: 0.55rem 0.7rem 0.5rem; border-radius: 0.6rem; background: var(--comment-card-bg); border: 0.5px solid var(--phone-color-border); } .q-item--answer { background: var(--q-answer-bg); border-color: transparent; box-shadow: inset 0.14rem 0 0 var(--q-answer-border); } .q-item-text { margin: 0; font-size: 0.92rem; line-height: 1.35; font-weight: 400; letter-spacing: -0.01em; color: var(--phone-text-primary); word-break: break-word; white-space: pre-wrap; } .q-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; } .q-item-who { display: flex; align-items: center; gap: 0.35rem; min-width: 0; flex: 1 1 auto; } .q-item-author { font-size: 0.72rem; font-weight: 600; letter-spacing: -0.01em; color: var(--phone-text-secondary); line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; } .q-item-author.is-action { color: var(--phone-color-blue); cursor: pointer; padding: 0; border: none; background: transparent; font: inherit; font-size: 0.72rem; font-weight: 600; } .q-item-author.is-action:active { opacity: 0.65; } .q-item--mine .q-item-author { color: var(--phone-color-blue); } .q-item-role { flex-shrink: 0; font-size: 0.66rem; font-weight: 600; letter-spacing: -0.01em; color: var(--phone-text-tertiary); line-height: 1.2; } .q-item--answer .q-item-role { color: var(--phone-color-blue); opacity: 0.85; } .q-item-time { flex-shrink: 0; font-size: 0.68rem; font-weight: 500; color: var(--phone-text-tertiary); line-height: 1.2; text-align: right; white-space: nowrap; } .q-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem; min-height: 11rem; padding: 1.75rem 1.25rem; text-align: center; } .q-empty-icon { width: 3.4rem; height: 3.4rem; margin-bottom: 0.35rem; color: var(--phone-text-tertiary); } .q-empty-icon svg { width: 100%; height: 100%; display: block; } .q-empty-title { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.02em; color: var(--phone-text-primary); line-height: 1.25; } .q-empty-sub { max-width: 16.5rem; font-size: 0.82rem; font-weight: 400; line-height: 1.35; color: var(--phone-text-secondary); } .comments-loading .q-empty-title { opacity: 0.85; } .nav-header { display: flex; align-items: center; justify-content: space-between; padding: 3.75rem var(--space-2) var(--space-2); flex-shrink: 0; } .nav-back { display: inline-flex; align-items: center; gap: 0.05rem; color: var(--phone-color-blue); font-size: 1.02rem; font-weight: 400; cursor: pointer; } .nav-back svg { width: 1.4rem; height: 1.4rem; fill: currentColor; } .nav-action { color: var(--phone-color-blue); font-size: 1.05rem; font-weight: 600; cursor: pointer; } .nav-action.danger { color: var(--phone-color-red); } .nav-action.disabled { opacity: 0.35; pointer-events: none; } .tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-around; align-items: flex-start; padding: 0.55rem 0.5rem calc(0.55rem + var(--safe-bottom)); background: var(--tabbar-bg); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid var(--tabbar-border); } .tab { border: none; background: transparent; color: var(--phone-text-secondary); display: flex; flex-direction: column; align-items: center; gap: 0.2rem; font-size: 0.72rem; font-weight: 500; min-width: 5.5rem; max-width: 7.5rem; cursor: pointer; padding: 0.2rem 0.35rem; letter-spacing: -0.01em; } .tab .tab-icon { width: 1.75rem; height: 1.75rem; fill: currentColor; } .tab.is-active { color: var(--phone-color-blue); font-weight: 600; } .feed { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-1) 0 var(--space-2); } .card { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2); margin: 0; border-radius: var(--radius-lg); border-bottom: none; cursor: pointer; background: var(--card); box-shadow: var(--shadow-card); position: relative; transition: background-color 0.22s var(--ease-ios), transform 0.18s var(--ease-ios), box-shadow 0.22s var(--ease-ios); } .card.is-manageable { cursor: default; } .card:last-child { border-bottom: none; } @media (hover: hover) { .card:hover { background-color: #f7f7f8; box-shadow: 0 0.45rem 1.25rem rgba(0, 0, 0, 0.08); } html[data-theme="dark"] .card:hover, body[data-theme="dark"] .card:hover, .market-app[data-theme="dark"] .card:hover, #app[data-theme="dark"] .card:hover { background-color: #2c2c2e; box-shadow: 0 0.45rem 1.25rem rgba(0, 0, 0, 0.45); } } .card:active { transform: scale(0.985); transition-duration: 0.08s; background-color: #eeeeef; } html[data-theme="dark"] .card:active, body[data-theme="dark"] .card:active, .market-app[data-theme="dark"] .card:active, #app[data-theme="dark"] .card:active { background-color: #3a3a3c; } .card-cover { width: 6.75rem; height: 6.75rem; min-width: 6.75rem; border-radius: var(--radius-md); object-fit: cover; display: block; background: var(--search-bg); flex-shrink: 0; } .card-cover-empty { background: var(--search-bg); } .card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.28rem; padding: 0.1rem 0; padding-right: 4.25rem; } .card-title { font-size: 1.08rem; font-weight: 700; color: var(--phone-text-primary); letter-spacing: -0.02em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .card-tag-slot { display: none; } .card-tag-new { position: absolute; top: var(--space-2); right: var(--space-2); z-index: 1; display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.28rem 0.5rem; border-radius: 999px; background: var(--phone-color-blue-soft); color: var(--phone-color-blue); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.2; } .card-tag-star { width: 0.68rem; height: 0.68rem; fill: currentColor; flex-shrink: 0; } .card-seller { margin-top: 0; font-size: 0.82rem; font-weight: 400; color: var(--phone-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .card-price-wrap { margin-top: 0.15rem; display: flex; flex-direction: column; gap: 0.1rem; } .card-price-old { font-size: 0.78rem; font-weight: 400; color: var(--phone-text-tertiary); text-decoration: line-through; text-decoration-thickness: 0.08rem; letter-spacing: -0.01em; line-height: 1.15; } .card-price { margin-top: 0.1rem; font-size: 1rem; font-weight: 500; color: var(--phone-text-primary); letter-spacing: -0.015em; line-height: 1.2; } .card-price-wrap .card-price { margin-top: 0; } .card-time { position: static; right: auto; bottom: auto; margin: 0.15rem 0 0; font-size: 0.72rem; font-weight: 400; color: var(--phone-text-tertiary); text-align: left; white-space: nowrap; } .card.is-manageable .card-time { right: auto; } .card-notify-badge { position: absolute; top: var(--space-2); right: var(--space-2); z-index: 3; min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem; border-radius: 999px; background: #ff3b30; color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 1.2rem; text-align: center; box-shadow: 0 0 0 0.14rem var(--card); cursor: pointer; } [data-theme="dark"] .card-notify-badge { background: #ff453a; box-shadow: 0 0 0 0.14rem var(--card); } .card-manage { position: absolute; right: var(--space-2); top: 50%; transform: translateY(-50%); z-index: 2; width: 2.15rem; height: 2.15rem; border-radius: 999px; background: var(--search-bg); color: var(--phone-text-primary); display: grid; place-items: center; cursor: pointer; border: none; padding: 0; } .card-manage svg { width: 1.05rem; height: 1.05rem; fill: currentColor; } .card.is-manageable .card-body { padding-right: 3.4rem; } .empty { text-align: center; color: var(--phone-text-secondary); padding: 2.5rem 1rem; font-size: 0.95rem; } .hidden { display: none !important; } .panel-block { margin-bottom: var(--space-3); } .recent-header .title { color: var(--phone-text-primary); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.65rem; } .group { background: var(--card); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); } .carousel { position: relative; margin: 0 0 var(--space-2); padding-bottom: 0.95rem; -webkit-user-select: none; user-select: none; touch-action: none; } .carousel-track { display: flex; gap: 0.55rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; padding: 0 0.15rem; touch-action: none; } .carousel-track.is-dragging, .carousel-track.is-settling { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; } .carousel-track::-webkit-scrollbar { display: none; width: 0; height: 0; } .carousel-slide { position: relative; flex: 0 0 calc(100% - 1.35rem); width: calc(100% - 1.35rem); min-width: calc(100% - 1.35rem); aspect-ratio: 4 / 3; scroll-snap-align: start; scroll-snap-stop: normal; border-radius: var(--radius-lg); overflow: hidden; background: transparent; } .carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; } .carousel-expand { position: absolute; top: 0.65rem; right: 0.8rem; z-index: 3; width: 2rem; height: 2rem; border: none; border-radius: 999px; display: grid; place-items: center; cursor: pointer; padding: 0; color: #fff; background: rgba(0, 0, 0, 0.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 0.12s ease, filter 0.12s ease; } .carousel-expand:active { transform: scale(0.94); filter: brightness(0.95); } .carousel-expand svg { width: 1rem; height: 1rem; fill: currentColor; display: block; } .carousel.is-single .carousel-expand { right: 0.65rem; } .carousel-counter { position: absolute; top: 0.65rem; left: 0.8rem; z-index: 2; padding: 0.22rem 0.5rem; border-radius: 999px; background: rgba(0, 0, 0, 0.42); color: #fff; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.01em; line-height: 1.2; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; } .carousel-dots { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 0.32rem; pointer-events: none; } .carousel-dot { width: 0.32rem; height: 0.32rem; border-radius: 999px; background: rgba(120, 120, 128, 0.38); transition: width 0.22s var(--ease-ios), background 0.22s var(--ease-ios), opacity 0.22s var(--ease-ios); opacity: 0.85; } .carousel-dot.is-active { width: 0.5rem; background: rgba(120, 120, 128, 0.75); opacity: 1; } .carousel.is-single { margin-left: 0; margin-right: 0; padding-bottom: 0; } .carousel.is-single .carousel-track { padding: 0; gap: 0; cursor: default; } .carousel.is-single .carousel-slide { flex-basis: 100%; width: 100%; min-width: 100%; } .carousel.is-single .carousel-counter, .carousel.is-single .carousel-dots { display: none; } .detail-header { display: flex; flex-direction: column; gap: 0.35rem; margin-top: var(--space-2); padding: 0 var(--space-1); } .detail-title { margin: 0; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.028em; line-height: 1.18; color: var(--phone-text-primary); } .detail-price-wrap { margin-top: 0.1rem; display: flex; flex-direction: column; gap: 0.1rem; } .detail-price-old { font-size: 0.82rem; font-weight: 400; color: var(--phone-text-tertiary); text-decoration: line-through; text-decoration-thickness: 0.08rem; letter-spacing: -0.01em; line-height: 1.15; } .detail-price { margin: 0; font-size: 1.28rem; font-weight: 600; letter-spacing: -0.025em; color: var(--phone-text-primary); line-height: 1.2; } .detail-price-wrap .detail-price { margin-top: 0; } /* Identidade do vendedor — bloco próprio (como o sender do Darknet) */ .detail-seller-block { margin-top: var(--space-2); padding: 0 var(--space-1); } .detail-seller-card { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.7rem 0.8rem; border: none; border-radius: 0.9rem; background: var(--phone-fill-secondary); color: inherit; font: inherit; text-align: left; cursor: default; } .detail-seller-card.is-action { cursor: pointer; transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease; } .detail-seller-card.is-action:active { transform: scale(0.985); filter: brightness(0.97); } .detail-seller-avatar { flex-shrink: 0; width: 2.45rem; height: 2.45rem; border-radius: 999px; display: grid; place-items: center; background: var(--phone-color-blue-soft); color: var(--phone-color-blue); font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; } .detail-seller-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; } .detail-seller-label { font-size: 0.72rem; font-weight: 500; color: var(--phone-text-secondary); letter-spacing: -0.01em; line-height: 1.2; } .detail-seller-name { font-size: 1rem; font-weight: 650; color: var(--phone-color-blue); letter-spacing: -0.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .detail-seller-card:not(.is-action) .detail-seller-name { color: var(--phone-text-primary); } .detail-seller-chev { flex-shrink: 0; width: 1.1rem; height: 1.1rem; fill: var(--phone-text-tertiary); } .detail-desc-block { margin-top: var(--space-3); padding: 0 var(--space-1) var(--space-1); } .detail-section-title { margin: 0 0 0.45rem; font-size: 0.8rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--phone-text-secondary); } .detail-desc { font-size: 0.95rem; line-height: 1.55; font-weight: 400; color: var(--phone-text-body); white-space: pre-wrap; word-break: break-word; overflow: visible; } .comment-form { display: flex; gap: 0.45rem; padding: 0.75rem 0.85rem 0.9rem; border-top: 0.5px solid var(--phone-color-border); } .comment-form input { flex: 1; min-width: 0; font-size: 0.92rem; color: var(--phone-text-primary); } .comment-form button { color: var(--phone-color-blue); font-weight: 700; font-size: 0.92rem; cursor: pointer; } .create-photos { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2); overflow-x: auto; } .photo-add, .photo-thumb { width: 5.25rem; height: 5.25rem; min-width: 5.25rem; border-radius: var(--radius-md); background: var(--search-bg); display: grid; place-items: center; position: relative; overflow: hidden; } .photo-add { font-size: 1.9rem; font-weight: 300; color: var(--phone-color-blue); cursor: pointer; border: 1px dashed color-mix(in srgb, var(--phone-color-blue) 35%, transparent); background: var(--phone-color-blue-soft); } .photo-thumb img { width: 100%; height: 100%; object-fit: cover; } .photo-thumb button { position: absolute; top: 0.3rem; right: 0.3rem; width: 1.35rem; height: 1.35rem; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.85rem; line-height: 1; cursor: pointer; } .form-group { padding: 0.35rem var(--space-2); } .field { display: flex; flex-direction: column; gap: 0.4rem; padding: var(--space-2) 0; border-top: 0.5px solid var(--phone-color-border); } .field:first-child { border-top: none; } .field span { font-size: 0.72rem; font-weight: 600; color: var(--phone-text-secondary); text-transform: uppercase; letter-spacing: 0.04em; } .field input, .field textarea { width: 100%; font-size: 1.05rem; font-weight: 400; line-height: 1.45; color: var(--phone-text-primary); resize: none; } .field textarea { min-height: 10rem; height: 10rem; overflow-y: auto; padding-top: 0.15rem; } .field input::placeholder, .field textarea::placeholder { color: var(--phone-text-tertiary); } .error { color: var(--phone-color-red); font-size: 0.9rem; padding: 0 0.25rem; } /* iOS UIActionSheet — mesmo padrão do Darknet */ .modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.5rem; pointer-events: none; visibility: hidden; } .modal.is-open { pointer-events: auto; visibility: visible; } .modal-backdrop { position: absolute; inset: 0; background: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.28s var(--ease-ios); } .modal.is-open .modal-backdrop { opacity: 1; } .modal-actions { align-items: flex-end; padding: 0.55rem 0.7rem calc(1.35rem + env(safe-area-inset-bottom, 0px)); } .modal-actions .modal-backdrop { background: rgba(0, 0, 0, 0.36); } .modal-actions.is-open .action-sheet { opacity: 1; transform: translateY(0); } .action-sheet { position: relative; width: 100%; max-width: 26rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; opacity: 0; transform: translateY(110%); transition: opacity 0.26s var(--ease-ios), transform 0.34s var(--ease-ios); } .action-sheet-group { overflow: hidden; border-radius: 0.875rem; background: var(--action-sheet-bg); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.06); } .action-sheet-btn { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; min-height: 3.5rem; padding: 0.85rem 1.1rem; border: none; border-radius: 0; background: transparent; color: var(--phone-color-blue); font: inherit; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; text-align: left; cursor: pointer; transition: background 0.12s ease; } .action-sheet-btn + .action-sheet-btn::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 0.5px; background: var(--action-sheet-separator); pointer-events: none; } .action-sheet-btn:active { background: var(--action-sheet-press); } .action-sheet-btn.hidden { display: none !important; } .action-sheet-icon { width: 1.35rem; height: 1.35rem; flex-shrink: 0; color: var(--phone-color-blue); opacity: 0.95; } .action-sheet-cancel { width: 100%; min-height: 3.5rem; margin-bottom: 0.55rem; padding: 0.85rem 1.1rem; border: none; border-radius: 0.875rem; background: var(--action-sheet-cancel-bg); -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.06); color: var(--phone-color-blue); font: inherit; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; cursor: pointer; transition: background 0.12s ease; } .action-sheet-cancel:active { background: var(--action-sheet-press); }