-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatalogo.html
More file actions
437 lines (410 loc) · 30.7 KB
/
Copy pathcatalogo.html
File metadata and controls
437 lines (410 loc) · 30.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Conheca nossos produtos: Paginas HTML, Landing Pages e Sistemas Web. Codigo profissional, entrega instantanea.">
<meta name="theme-color" content="#000000">
<meta name="color-scheme" content="light dark">
<title>Nossos Produtos - Oferta Relampago</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>⚡</text></svg>">
<script>
(function() {
var saved = localStorage.getItem('theme-preference');
if (saved === 'dark' || (!saved && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
}
})();
</script>
<style>
:root {
--color-primary: #FF5722;
--color-primary-hover: #F4511E;
--color-success: #43A047;
--color-bg: #FFEDE6;
--color-bg-subtle: #FFF5F2;
--color-surface: #ffffff;
--color-surface-hover: #FAFAFA;
--color-surface-border: #f0f0f0;
--color-text-primary: #1a1a1a;
--color-text-secondary: #5a5a5a;
--color-text-muted: #9ca3af;
--color-header-bg: #1a1a1a;
--color-toast-bg: #2d2d2d;
--color-skip-bg: #1a1a1a;
--color-particle: rgba(255, 87, 34, 0.3);
--color-particle-line: rgba(255, 87, 34, 0.08);
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--font-size-xs: 0.6875rem;
--font-size-sm: 0.75rem;
--font-size-base: 0.875rem;
--font-size-lg: 1rem;
--font-size-xl: 1.125rem;
--font-size-2xl: 1.5rem;
--font-size-3xl: 1.875rem;
--radius-sm: 6px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--radius-full: 9999px;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
--shadow-button: 0 4px 14px rgba(255, 87, 34, 0.3);
--shadow-button-hover: 0 6px 20px rgba(255, 87, 34, 0.35);
--ease-out: cubic-bezier(0.33, 1, 0.68, 1);
--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html.dark {
--color-bg: #0f0f1a;
--color-bg-subtle: #151525;
--color-surface: #1a1a2e;
--color-surface-hover: #222238;
--color-surface-border: #2a2a3e;
--color-text-primary: #e8e8ec;
--color-text-secondary: #a0a0b0;
--color-text-muted: #6b6b7b;
--color-header-bg: #1a1a2e;
--color-toast-bg: #e8e8ec;
--color-skip-bg: #1a1a2e;
--color-particle: rgba(255, 87, 34, 0.15);
--color-particle-line: rgba(255, 87, 34, 0.05);
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
--shadow-md: 0 2px 8px rgba(0, 0, 0, 0.25);
--shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.3);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
min-height: 100dvh;
background: var(--color-bg);
display: flex;
justify-content: center;
font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
color: var(--color-text-primary);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
overflow-x: hidden;
}
::selection { background: var(--color-primary); color: #fff; }
#particles-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* Splash */
#splash-screen {
position: fixed; inset: 0; z-index: 9999;
background: var(--color-bg);
display: flex; flex-direction: column;
align-items: center; justify-content: center;
transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
#splash-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-icon { font-size: 64px; animation: splash-pulse 1s ease-in-out infinite alternate; }
@keyframes splash-pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.15); opacity: 1; } }
.splash-loader { margin-top: 24px; width: 120px; height: 3px; background: var(--color-surface-border); border-radius: 3px; overflow: hidden; }
.splash-loader-bar { height: 100%; width: 0%; background: linear-gradient(135deg, #FF5722, #F4511E); border-radius: 3px; transition: width 0.3s; }
/* Skip link */
.skip-link { position: absolute; top: -100%; left: var(--space-4); background: var(--color-skip-bg); color: #fff; padding: var(--space-2) var(--space-4); border-radius: 0 0 var(--radius-md) var(--radius-md); z-index: 100; font-weight: 600; font-size: var(--font-size-sm); text-decoration: none; transition: top 0.15s var(--ease-out); }
.skip-link:focus { top: 0; }
/* Container */
.container {
width: 100%; max-width: 960px; display: flex; flex-direction: column;
gap: var(--space-4); padding: var(--space-4); padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom));
position: relative; z-index: 1;
}
/* Header */
.header { background: var(--color-header-bg); color: #fff; text-align: center; padding: var(--space-3) var(--space-4); font-size: var(--font-size-base); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: var(--space-2); position: sticky; top: 0; z-index: 10; border-radius: var(--radius-lg); margin-inline: calc(-1 * var(--space-4)); width: calc(100% + var(--space-8)); }
.header-icon { width: 18px; height: 18px; color: #facc15; flex-shrink: 0; animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow { 0%,100% { filter: drop-shadow(0 0 2px #facc15); } 50% { filter: drop-shadow(0 0 10px #facc15); } }
.header-title { flex: 1; }
.header-controls { display: flex; gap: 6px; position: absolute; right: var(--space-4); }
.header-btn { background: rgba(255,255,255,0.15); border: none; cursor: pointer; width: 32px; height: 32px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background 0.15s, transform 0.15s var(--ease-spring); -webkit-tap-highlight-color: transparent; color: #fff; }
.header-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }
.header-btn:active { transform: scale(0.95); }
.header-btn:focus-visible { outline: 2px solid #facc15; outline-offset: 2px; }
.header-btn .icon-sun { display: none; }
.header-btn .icon-moon { display: block; }
html.dark .header-btn .icon-sun { display: block; }
html.dark .header-btn .icon-moon { display: none; }
/* Hero */
.hero { text-align: center; padding: var(--space-6) 0 var(--space-2); opacity: 0; animation: slide-up 0.4s var(--ease-out) forwards; }
.hero-title { font-size: var(--font-size-3xl); font-weight: 800; color: var(--color-text-primary); margin-bottom: var(--space-2); }
.hero-subtitle { font-size: var(--font-size-base); color: var(--color-text-secondary); max-width: 500px; margin: 0 auto; }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.product-card {
background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
border: 1px solid var(--color-surface-border); overflow: hidden;
display: flex; flex-direction: column;
transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
opacity: 0; animation: slide-up 0.4s var(--ease-out) forwards;
}
.product-card:nth-child(1) { animation-delay: 100ms; }
.product-card:nth-child(2) { animation-delay: 200ms; }
.product-card:nth-child(3) { animation-delay: 300ms; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--color-bg-subtle); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.product-card:hover .card-image img { transform: scale(1.05); }
html.dark .card-image img { opacity: 0.95; }
.card-badge { position: absolute; top: var(--space-3); left: var(--space-3); background: var(--color-success); color: #fff; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: var(--shadow-md); }
.card-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card-name { font-size: var(--font-size-xl); font-weight: 700; color: var(--color-text-primary); }
.card-desc { font-size: var(--font-size-sm); color: var(--color-text-secondary); line-height: 1.6; flex: 1; }
.card-pricing { display: flex; flex-direction: column; gap: var(--space-1); }
.card-price-old { color: var(--color-text-muted); font-size: var(--font-size-sm); text-decoration: line-through; }
.card-price-row { display: flex; align-items: baseline; gap: var(--space-2); }
.card-price-main { font-size: var(--font-size-2xl); font-weight: 800; color: var(--color-text-primary); }
.card-price-cents { font-size: var(--font-size-base); font-weight: 600; }
.card-price-installments { font-size: var(--font-size-xs); color: var(--color-text-secondary); background: var(--color-bg-subtle); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); display: inline-block; width: fit-content; }
.card-cta {
display: block; width: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
background: var(--color-primary); color: #fff; border: none; font-family: inherit;
font-weight: 700; font-size: var(--font-size-base); text-align: center; text-decoration: none;
cursor: pointer; transition: all 0.15s var(--ease-out); box-shadow: var(--shadow-button);
}
.card-cta:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-button-hover); transform: translateY(-2px); }
.card-cta:active { transform: translateY(0) scale(0.98); }
.card-cta:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
/* Loading / Empty */
.loading-state, .empty-state { text-align: center; padding: var(--space-6) 0; color: var(--color-text-muted); font-size: var(--font-size-base); }
.loading-spinner { width: 32px; height: 32px; border: 3px solid var(--color-surface-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto var(--space-3); }
@keyframes spin { to { transform: rotate(360deg); } }
/* Social Proof */
.social-proof { background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border: 1px solid var(--color-surface-border); padding: var(--space-5); text-align: center; opacity: 0; animation: slide-up 0.4s var(--ease-out) forwards; animation-delay: 500ms; }
.social-proof-title { font-size: var(--font-size-sm); font-weight: 700; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-3); }
.testimonial { display: none; }
.testimonial.active { display: block; animation: fade-in 0.4s var(--ease-out); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.testimonial-text { font-size: var(--font-size-sm); color: var(--color-text-primary); font-style: italic; line-height: 1.6; }
.testimonial-author { font-size: var(--font-size-xs); color: var(--color-text-muted); margin-top: var(--space-2); font-weight: 600; }
.testimonial-stars { margin-bottom: var(--space-2); }
.testimonial-stars svg { width: 14px; height: 14px; fill: #eab308; }
.testimonial-dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-3); }
.testimonial-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-surface-border); border: none; cursor: pointer; transition: all 0.2s; }
.testimonial-dot.active { background: var(--color-primary); transform: scale(1.2); }
/* Trust */
.trust-section { background: var(--color-surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border: 1px solid var(--color-surface-border); padding: var(--space-5); opacity: 0; animation: slide-up 0.4s var(--ease-out) forwards; animation-delay: 600ms; }
.trust-title { text-align: center; font-size: var(--font-size-base); font-weight: 600; margin-bottom: var(--space-4); color: var(--color-text-primary); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); background: var(--color-bg-subtle); padding: var(--space-4); border-radius: var(--radius-lg); text-align: center; border: 1px solid var(--color-surface-border); transition: all 0.15s; }
.trust-item:hover { background: var(--color-surface-hover); transform: translateY(-2px); }
.trust-item svg { width: 24px; height: 24px; color: var(--color-text-secondary); }
.trust-item-label { font-size: var(--font-size-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-primary); }
/* Admin link */
.admin-link { text-align: center; padding: var(--space-4); font-size: var(--font-size-sm); color: var(--color-text-muted); }
.admin-link a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.admin-link a:hover { text-decoration: underline; }
/* Toast */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--color-toast-bg); color: #fff; padding: var(--space-3) var(--space-5); border-radius: var(--radius-lg); font-size: var(--font-size-sm); font-weight: 600; z-index: 1000; opacity: 0; transition: all 0.25s var(--ease-out); box-shadow: var(--shadow-lg); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.error { background: var(--color-danger); }
.toast.success { background: var(--color-success); }
/* Responsive */
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } #particles-canvas { display: none; } }
@media (max-width: 640px) { .trust-grid { grid-template-columns: 1fr 1fr; } .products-grid { grid-template-columns: 1fr; } }
</style>
</head>
<body>
<div id="splash-screen" role="status" aria-label="Carregando">
<div class="splash-icon">⚡</div>
<div class="splash-loader"><div class="splash-loader-bar" id="splash-bar"></div></div>
</div>
<canvas id="particles-canvas" aria-hidden="true"></canvas>
<a href="#main-content" class="skip-link">Pular para o conteudo principal</a>
<div class="container">
<header class="header" role="banner">
<svg class="header-icon" aria-hidden="true" viewBox="0 0 24 24" fill="currentColor"><path d="M13 2L3 14h9l-1 10 10-12h-9l1-10z"/></svg>
<span class="header-title">Nossos Produtos</span>
<div class="header-controls">
<button class="header-btn theme-toggle" type="button" aria-label="Alternar tema">
<svg class="icon-moon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="18" height="18"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
<svg class="icon-sun" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" width="18" height="18"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
</button>
</div>
</header>
<main id="main-content">
<section class="hero">
<h1 class="hero-title">Escolha seu produto</h1>
<p class="hero-subtitle">Solucoes profissionais para seu negocio. Codigo limpo, responsivo e entrega instantanea.</p>
</section>
<div id="products-container">
<div class="loading-state">
<div class="loading-spinner"></div>
Carregando produtos...
</div>
</div>
<section class="social-proof" aria-label="Depoimentos de clientes">
<h2 class="social-proof-title">O que nossos clientes dizem</h2>
<div id="testimonial-container">
<div class="testimonial active">
<div class="testimonial-stars"><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg></div>
<p class="testimonial-text">"Comprei as paginas e em 5 minutos ja estava com o codigo no WhatsApp. Muito profissional e responsivo!"</p>
<p class="testimonial-author">— Gabriel M. • Pernabuco, PE</p>
</div>
<div class="testimonial">
<div class="testimonial-stars"><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg></div>
<p class="testimonial-text">"R$ 80 por paginas HTML/CSS profissionais e um absurdo de barato. Ja comprei 3 vezes para projetos diferentes!"</p>
<p class="testimonial-author">— Eduardo C. • Paraiba, PB</p>
</div>
<div class="testimonial">
<div class="testimonial-stars"><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg><svg viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg></div>
<p class="testimonial-text">"Usei como base para o site do meu negocio. Codigo limpo, bem comentado e super rapido de customizar. Recomendo!"</p>
<p class="testimonial-author">— Carlos E. • Belo Horizonte, MG</p>
</div>
</div>
<div class="testimonial-dots" role="tablist" aria-label="Navegar depoimentos">
<button class="testimonial-dot active" role="tab" aria-selected="true" aria-label="Depoimento 1" data-idx="0"></button>
<button class="testimonial-dot" role="tab" aria-selected="false" aria-label="Depoimento 2" data-idx="1"></button>
<button class="testimonial-dot" role="tab" aria-selected="false" aria-label="Depoimento 3" data-idx="2"></button>
</div>
</section>
<section class="trust-section">
<h2 class="trust-title">Por que escolher nossos produtos?</h2>
<div class="trust-grid">
<div class="trust-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M13 2L3 14h9l-1 10 10-12h-9l1-10z"/></svg><span class="trust-item-label">Entrega Instantanea</span></div>
<div class="trust-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><path d="m9 12 2 2 4-4"/></svg><span class="trust-item-label">Codigo Profissional</span></div>
<div class="trust-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg><span class="trust-item-label">100% Responsivo</span></div>
<div class="trust-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg><span class="trust-item-label">Preco Acessivel</span></div>
</div>
</section>
<div class="admin-link"><a href="admin.html">Area Administrativa</a></div>
</main>
</div>
<div id="toast" class="toast" role="alert" aria-live="assertive"></div>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script>
var SUPABASE_URL = 'https://qazpfaafpbrzhsnviuht.supabase.co';
var SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InFhenBmYWFmcGJyemhzbnZpdWh0Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3ODEyODg2OTQsImV4cCI6MjA5Njg2NDY5NH0.UKDCGXhfIEH8CyBeqSAK9jbrDuT_67oMFsVXGZmYOk0';
var supabaseClient = window.supabase.createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
// Splash screen
(function() {
var bar = document.getElementById('splash-bar');
var w = 0;
var iv = setInterval(function() {
w += Math.random() * 15 + 5;
if (w >= 100) { w = 100; clearInterval(iv); }
bar.style.width = w + '%';
if (w >= 100) { setTimeout(function() { document.getElementById('splash-screen').classList.add('hide'); }, 300); }
}, 120);
})();
// Particles
(function() {
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
var canvas = document.getElementById('particles-canvas');
var ctx = canvas.getContext('2d');
var particles = [];
var mouse = { x: -9999, y: -9999 };
function resize() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; }
window.addEventListener('resize', resize);
resize();
for (var i = 0; i < 120; i++) { particles.push({ x: Math.random() * canvas.width, y: Math.random() * canvas.height, vx: (Math.random()-0.5)*0.5, vy: (Math.random()-0.5)*0.5, r: Math.random()*2+1 }); }
canvas.addEventListener('mousemove', function(e) { mouse.x = e.clientX; mouse.y = e.clientY; });
canvas.addEventListener('mouseleave', function() { mouse.x = -9999; mouse.y = -9999; });
function draw() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
var isDark = document.documentElement.classList.contains('dark');
for (var i = 0; i < particles.length; i++) {
var p = particles[i];
p.x += p.vx; p.y += p.vy;
if (p.x < 0 || p.x > canvas.width) p.vx *= -1;
if (p.y < 0 || p.y > canvas.height) p.vy *= -1;
var dx = p.x - mouse.x, dy = p.y - mouse.y, dist = Math.sqrt(dx*dx+dy*dy);
if (dist < 100) { p.vx += dx*0.0002; p.vy += dy*0.0002; if (Math.sqrt(p.vx*p.vx+p.vy*p.vy) > 2) { p.vx*=0.95; p.vy*=0.95; } }
var alpha = isDark ? 0.15 : 0.3;
ctx.beginPath(); ctx.arc(p.x, p.y, p.r, 0, Math.PI*2); ctx.fillStyle = 'rgba(255,87,34,'+alpha+')'; ctx.fill();
for (var j = i+1; j < particles.length; j++) {
var p2 = particles[j];
var dx2 = p.x-p2.x, dy2 = p.y-p2.y, dist2 = Math.sqrt(dx2*dx2+dy2*dy2);
if (dist2 < 120) { ctx.beginPath(); ctx.moveTo(p.x,p.y); ctx.lineTo(p2.x,p2.y); ctx.strokeStyle='rgba(255,87,34,'+((isDark?0.05:0.08)*(1-dist2/120))+')'; ctx.lineWidth=0.5; ctx.stroke(); }
}
}
requestAnimationFrame(draw);
}
draw();
})();
// Theme toggle
var toggleBtn = document.querySelector('.theme-toggle');
var html = document.documentElement;
toggleBtn.addEventListener('click', function() {
var isDark = html.classList.toggle('dark');
localStorage.setItem('theme-preference', isDark ? 'dark' : 'light');
toggleBtn.setAttribute('aria-label', isDark ? 'Alternar para modo claro' : 'Alternar para modo escuro');
});
// Toast
function showToast(msg, type) {
var toast = document.getElementById('toast');
toast.textContent = msg;
toast.className = 'toast ' + (type||'info');
toast.classList.add('show');
setTimeout(function() { toast.classList.remove('show'); }, 3000);
}
// Load products
async function loadProducts() {
var container = document.getElementById('products-container');
try {
var result = await supabaseClient.from('products').select('*').eq('active', true).order('sort_order');
if (result.error) throw result.error;
var products = result.data;
if (!products || products.length === 0) {
container.innerHTML = '<div class="empty-state">Nenhum produto disponivel no momento.</div>';
return;
}
var html = '<div class="products-grid">';
products.forEach(function(p) {
var installment = (p.price / 3).toFixed(2).replace('.', ',');
var oldPrice = p.old_price ? '<span class="card-price-old">De R$ ' + p.old_price.toFixed(2).replace('.', ',') + '</span>' : '';
var badge = p.badge ? '<span class="card-badge">' + p.badge + '</span>' : '';
html += '<div class="product-card">' +
'<div class="card-image">' +
'<img src="' + (p.image_url || '') + '" alt="' + p.name + '" width="800" height="500" loading="lazy">' +
badge +
'</div>' +
'<div class="card-body">' +
'<h2 class="card-name">' + p.name + '</h2>' +
'<p class="card-desc">' + (p.description || '') + '</p>' +
'<div class="card-pricing">' +
oldPrice +
'<div class="card-price-row">' +
'<span class="card-price-main">R$ ' + p.price.toFixed(0) + '</span>' +
'<span class="card-price-cents">,00</span>' +
'</div>' +
'<span class="card-price-installments">ou 3x de R$ ' + installment + '</span>' +
'</div>' +
'<a href="index.html?product=' + p.id + '" class="card-cta">Quero esse!</a>' +
'</div>' +
'</div>';
});
html += '</div>';
container.innerHTML = html;
} catch(e) {
console.error(e);
container.innerHTML = '<div class="empty-state">Erro ao carregar produtos. Tente novamente.</div>';
showToast('Erro ao carregar produtos', 'error');
}
}
loadProducts();
// Testimonial carousel
!function() {
var t = document.querySelectorAll('.testimonial');
var d = document.querySelectorAll('.testimonial-dot');
var idx = 0;
function show(i) {
t.forEach(function(el) { el.classList.remove('active'); });
d.forEach(function(el) { el.classList.remove('active'); el.setAttribute('aria-selected','false'); });
t[i].classList.add('active');
d[i].classList.add('active');
d[i].setAttribute('aria-selected','true');
idx = i;
}
d.forEach(function(dot) { dot.addEventListener('click', function() { show(parseInt(this.dataset.idx)); }); });
setInterval(function() { show((idx+1)%t.length); }, 5000);
}();
</script>
</body>
</html>