BLAKESTOREGG's picture
Add 3 files
6c9c0da verified
Raw History Blame Contribute Delete
55.9 kB
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BLAKESTORE - Roupas de Treino Personalizadas</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.gradient-bg {
background: linear-gradient(135deg, #000000 0%, #7f1d1d 100%);
}
.product-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}
.customization-panel {
border-left: 3px solid #ef4444;
}
.color-option {
width: 30px;
height: 30px;
cursor: pointer;
transition: all 0.3s;
}
.color-option:hover {
transform: scale(1.1);
}
.color-option.selected {
border: 2px solid white;
box-shadow: 0 0 5px rgba(255,255,255,0.7);
}
.cart-item:hover {
background-color: rgba(239, 68, 68, 0.1);
}
.checkout-step {
position: relative;
}
.checkout-step:not(:last-child):after {
content: '';
position: absolute;
right: -20px;
top: 50%;
transform: translateY(-50%);
width: 10px;
height: 10px;
background-color: #ef4444;
border-radius: 50%;
}
.checkout-step.active {
color: #ef4444;
font-weight: bold;
}
.checkout-step.completed {
color: #22c55e;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<!-- Header/Navbar -->
<header class="gradient-bg text-white shadow-lg">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-dumbbell text-2xl text-red-500"></i>
<h1 class="text-2xl font-bold">BLAKE<span class="text-red-500">STORE</span></h1>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#" class="hover:text-red-400 transition">Início</a>
<a href="#" class="hover:text-red-400 transition">Produtos</a>
<a href="#" class="hover:text-red-400 transition">Personalizar</a>
<a href="#" class="hover:text-red-400 transition">Sobre Nós</a>
<a href="#" class="hover:text-red-400 transition">Contato</a>
</nav>
<div class="flex items-center space-x-4">
<button id="cart-btn" class="relative">
<i class="fas fa-shopping-cart text-xl"></i>
<span id="cart-count" class="absolute -top-2 -right-2 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span>
</button>
<button class="md:hidden" id="mobile-menu-btn">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
<!-- Mobile Menu -->
<div id="mobile-menu" class="hidden md:hidden gradient-bg pb-4 px-4">
<a href="#" class="block py-2 hover:text-red-400 transition">Início</a>
<a href="#" class="block py-2 hover:text-red-400 transition">Produtos</a>
<a href="#" class="block py-2 hover:text-red-400 transition">Personalizar</a>
<a href="#" class="block py-2 hover:text-red-400 transition">Sobre Nós</a>
<a href="#" class="block py-2 hover:text-red-400 transition">Contato</a>
</div>
</header>
<!-- Hero Section -->
<section class="gradient-bg text-white py-16">
<div class="container mx-auto px-4 flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-8 md:mb-0">
<h2 class="text-4xl md:text-5xl font-bold mb-4">ROUPAS DE TREINO <span class="text-red-500">PERSONALIZADAS</span></h2>
<p class="text-lg mb-6">Crie sua própria coleção de roupas de treino com suas cores, estampas e mensagens preferidas.</p>
<div class="flex space-x-4">
<button class="bg-red-500 hover:bg-red-600 text-white px-6 py-3 rounded-lg font-medium transition">Personalizar Agora</button>
<button class="border-2 border-white hover:bg-white hover:text-black text-white px-6 py-3 rounded-lg font-medium transition">Ver Coleção</button>
</div>
</div>
<div class="md:w-1/2 flex justify-center">
<img src="https://images.unsplash.com/photo-1594381898411-846e7d193883?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Modelo com roupa de treino" class="rounded-lg shadow-2xl max-w-md w-full">
</div>
</div>
</section>
<!-- Product Customization Section -->
<section class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">PERSONALIZE SEU PRODUTO</h2>
<div class="flex flex-col lg:flex-row gap-8">
<!-- Product Display -->
<div class="lg:w-2/3 bg-gray-50 p-8 rounded-lg shadow-md">
<div class="flex justify-center mb-8">
<div class="relative">
<img id="product-image" src="https://images.unsplash.com/photo-1583743814966-8936f5b7be1a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1374&q=80" alt="Camiseta de treino" class="w-full max-w-md rounded-lg">
<div id="custom-text" class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-center font-bold" style="color: #ef4444; font-size: 24px;">SEU TEXTO</div>
</div>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<div class="product-card bg-gray-100 p-4 rounded-lg cursor-pointer transition" data-product="camiseta">
<img src="https://images.unsplash.com/photo-1583743814966-8936f5b7be1a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1374&q=80" alt="Camiseta" class="w-full rounded mb-2">
<h3 class="font-medium">Camiseta</h3>
<p class="text-red-500 font-bold">R$ 89,90</p>
</div>
<div class="product-card bg-gray-100 p-4 rounded-lg cursor-pointer transition" data-product="regata">
<img src="https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1372&q=80" alt="Regata" class="w-full rounded mb-2">
<h3 class="font-medium">Regata</h3>
<p class="text-red-500 font-bold">R$ 79,90</p>
</div>
<div class="product-card bg-gray-100 p-4 rounded-lg cursor-pointer transition" data-product="calca">
<img src="https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1376&q=80" alt="Calça" class="w-full rounded mb-2">
<h3 class="font-medium">Calça</h3>
<p class="text-red-500 font-bold">R$ 129,90</p>
</div>
<div class="product-card bg-gray-100 p-4 rounded-lg cursor-pointer transition" data-product="shorts">
<img src="https://images.unsplash.com/photo-1591195853828-11db59a44f6b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Shorts" class="w-full rounded mb-2">
<h3 class="font-medium">Shorts</h3>
<p class="text-red-500 font-bold">R$ 99,90</p>
</div>
</div>
</div>
<!-- Customization Panel -->
<div class="lg:w-1/3 bg-gray-50 p-8 rounded-lg shadow-md customization-panel">
<h3 class="text-xl font-bold mb-6">PERSONALIZAÇÃO</h3>
<div class="mb-6">
<label class="block text-sm font-medium mb-2">Cor Principal</label>
<div class="flex flex-wrap gap-2">
<div class="color-option bg-black rounded-full selected" data-color="black" data-hex="#000000"></div>
<div class="color-option bg-red-600 rounded-full" data-color="red" data-hex="#dc2626"></div>
<div class="color-option bg-gray-500 rounded-full" data-color="gray" data-hex="#6b7280"></div>
<div class="color-option bg-white rounded-full border border-gray-300" data-color="white" data-hex="#ffffff"></div>
<div class="color-option bg-blue-600 rounded-full" data-color="blue" data-hex="#2563eb"></div>
<div class="color-option bg-green-600 rounded-full" data-color="green" data-hex="#16a34a"></div>
</div>
</div>
<div class="mb-6">
<label class="block text-sm font-medium mb-2">Cor do Texto</label>
<div class="flex flex-wrap gap-2">
<div class="color-option bg-red-600 rounded-full selected" data-text-color="red" data-hex="#dc2626"></div>
<div class="color-option bg-black rounded-full" data-text-color="black" data-hex="#000000"></div>
<div class="color-option bg-white rounded-full border border-gray-300" data-text-color="white" data-hex="#ffffff"></div>
<div class="color-option bg-yellow-400 rounded-full" data-text-color="yellow" data-hex="#facc15"></div>
<div class="color-option bg-blue-600 rounded-full" data-text-color="blue" data-hex="#2563eb"></div>
</div>
</div>
<div class="mb-6">
<label for="custom-text-input" class="block text-sm font-medium mb-2">Texto Personalizado</label>
<input type="text" id="custom-text-input" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-red-500" value="SEU TEXTO">
</div>
<div class="mb-6">
<label for="text-size" class="block text-sm font-medium mb-2">Tamanho do Texto</label>
<select id="text-size" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-red-500">
<option value="16px">Pequeno</option>
<option value="24px" selected>Médio</option>
<option value="32px">Grande</option>
<option value="40px">Extra Grande</option>
</select>
</div>
<div class="mb-6">
<label for="product-size" class="block text-sm font-medium mb-2">Tamanho do Produto</label>
<select id="product-size" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-red-500 focus:border-red-500">
<option value="P">P</option>
<option value="M" selected>M</option>
<option value="G">G</option>
<option value="GG">GG</option>
<option value="XG">XG</option>
</select>
</div>
<div class="mb-6">
<label class="block text-sm font-medium mb-2">Quantidade</label>
<div class="flex items-center">
<button id="decrease-qty" class="bg-gray-200 px-3 py-1 rounded-l-lg">-</button>
<input type="number" id="quantity" value="1" min="1" class="w-16 text-center border-t border-b border-gray-300 py-1">
<button id="increase-qty" class="bg-gray-200 px-3 py-1 rounded-r-lg">+</button>
</div>
</div>
<button id="add-to-cart" class="w-full bg-red-500 hover:bg-red-600 text-white py-3 rounded-lg font-medium transition flex items-center justify-center">
<i class="fas fa-shopping-cart mr-2"></i> ADICIONAR AO CARRINHO - R$ <span id="product-price">89,90</span>
</button>
</div>
</div>
</div>
</section>
<!-- Featured Products -->
<section class="py-12 bg-gray-100">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-12">NOSSOS PRODUTOS</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
<!-- Product 1 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden transition hover:shadow-xl">
<div class="relative">
<img src="https://images.unsplash.com/photo-1591047139829-d91aecb6caea?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1376&q=80" alt="Calça de Treino" class="w-full h-64 object-cover">
<div class="absolute top-2 right-2 bg-red-500 text-white text-xs font-bold px-2 py-1 rounded">NOVO</div>
</div>
<div class="p-4">
<h3 class="font-bold text-lg mb-2">Calça de Treino Premium</h3>
<p class="text-gray-600 text-sm mb-3">Tecnologia Dry-Fit para máximo conforto durante seus treinos.</p>
<div class="flex justify-between items-center">
<span class="font-bold text-red-500">R$ 129,90</span>
<button class="bg-black text-white px-3 py-1 rounded-full text-sm hover:bg-red-500 transition">+ Carrinho</button>
</div>
</div>
</div>
<!-- Product 2 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden transition hover:shadow-xl">
<div class="relative">
<img src="https://images.unsplash.com/photo-1620799140408-edc6dcb6d633?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1372&q=80" alt="Regata Performance" class="w-full h-64 object-cover">
<div class="absolute top-2 right-2 bg-black text-white text-xs font-bold px-2 py-1 rounded">MAIS VENDIDO</div>
</div>
<div class="p-4">
<h3 class="font-bold text-lg mb-2">Regata Performance</h3>
<p class="text-gray-600 text-sm mb-3">Leve e respirável para treinos intensos.</p>
<div class="flex justify-between items-center">
<span class="font-bold text-red-500">R$ 79,90</span>
<button class="bg-black text-white px-3 py-1 rounded-full text-sm hover:bg-red-500 transition">+ Carrinho</button>
</div>
</div>
</div>
<!-- Product 3 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden transition hover:shadow-xl">
<img src="https://images.unsplash.com/photo-1591195853828-11db59a44f6b?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Shorts de Compressão" class="w-full h-64 object-cover">
<div class="p-4">
<h3 class="font-bold text-lg mb-2">Shorts de Compressão</h3>
<p class="text-gray-600 text-sm mb-3">Suporte muscular para melhor performance.</p>
<div class="flex justify-between items-center">
<span class="font-bold text-red-500">R$ 99,90</span>
<button class="bg-black text-white px-3 py-1 rounded-full text-sm hover:bg-red-500 transition">+ Carrinho</button>
</div>
</div>
</div>
<!-- Product 4 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden transition hover:shadow-xl">
<div class="relative">
<img src="https://images.unsplash.com/photo-1583743814966-8936f5b7be1a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1374&q=80" alt="Camiseta Dry-Fit" class="w-full h-64 object-cover">
<div class="absolute top-2 right-2 bg-red-500 text-white text-xs font-bold px-2 py-1 rounded">PROMOÇÃO</div>
</div>
<div class="p-4">
<h3 class="font-bold text-lg mb-2">Camiseta Dry-Fit</h3>
<p class="text-gray-600 text-sm mb-3">Tecido tecnológico que mantém você seco.</p>
<div class="flex justify-between items-center">
<div>
<span class="text-gray-400 text-sm line-through mr-2">R$ 99,90</span>
<span class="font-bold text-red-500">R$ 79,90</span>
</div>
<button class="bg-black text-white px-3 py-1 rounded-full text-sm hover:bg-red-500 transition">+ Carrinho</button>
</div>
</div>
</div>
</div>
<div class="text-center mt-8">
<button class="border-2 border-black text-black px-6 py-2 rounded-lg font-medium hover:bg-black hover:text-white transition">Ver Todos os Produtos</button>
</div>
</div>
</section>
<!-- Shopping Cart Modal -->
<div id="cart-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden">
<div class="absolute right-0 top-0 h-full w-full md:w-1/2 lg:w-1/3 bg-white shadow-lg overflow-y-auto">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="text-xl font-bold">SEU CARRINHO</h3>
<button id="close-cart" class="text-gray-500 hover:text-red-500">
<i class="fas fa-times text-xl"></i>
</button>
</div>
<div id="cart-items" class="mb-6">
<!-- Cart items will be added here dynamically -->
<div class="text-center py-8 text-gray-500">
<i class="fas fa-shopping-cart text-4xl mb-2"></i>
<p>Seu carrinho está vazio</p>
</div>
</div>
<div class="border-t border-gray-200 pt-4 mb-6">
<div class="flex justify-between mb-2">
<span>Subtotal</span>
<span id="cart-subtotal">R$ 0,00</span>
</div>
<div class="flex justify-between mb-2">
<span>Frete</span>
<span id="cart-shipping">A calcular</span>
</div>
<div class="flex justify-between font-bold text-lg">
<span>Total</span>
<span id="cart-total">R$ 0,00</span>
</div>
</div>
<button id="checkout-btn" class="w-full bg-red-500 hover:bg-red-600 text-white py-3 rounded-lg font-medium transition mb-4">
FINALIZAR COMPRA
</button>
<button class="w-full border-2 border-black text-black py-3 rounded-lg font-medium hover:bg-black hover:text-white transition">
CONTINUAR COMPRANDO
</button>
</div>
</div>
</div>
<!-- Checkout Process -->
<div id="checkout-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden">
<div class="absolute right-0 top-0 h-full w-full md:w-2/3 lg:w-1/2 bg-white shadow-lg overflow-y-auto">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="text-xl font-bold">FINALIZAR COMPRA</h3>
<button id="close-checkout" class="text-gray-500 hover:text-red-500">
<i class="fas fa-times text-xl"></i>
</button>
</div>
<!-- Checkout Steps -->
<div class="flex justify-between mb-8 relative">
<div class="checkout-step active" data-step="1">
<div class="w-8 h-8 bg-red-500 text-white rounded-full flex items-center justify-center mx-auto mb-2">1</div>
<span>Endereço</span>
</div>
<div class="checkout-step" data-step="2">
<div class="w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center mx-auto mb-2">2</div>
<span>Pagamento</span>
</div>
<div class="checkout-step" data-step="3">
<div class="w-8 h-8 bg-gray-200 rounded-full flex items-center justify-center mx-auto mb-2">3</div>
<span>Revisão</span>
</div>
</div>
<!-- Step 1: Address -->
<div id="step-1" class="checkout-step-content">
<h4 class="font-bold mb-4">INFORMAÇÕES DE ENTREGA</h4>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
<div>
<label class="block text-sm font-medium mb-1">Nome</label>
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg">
</div>
<div>
<label class="block text-sm font-medium mb-1">Sobrenome</label>
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg">
</div>
</div>
<div class="mb-4">
<label class="block text-sm font-medium mb-1">Endereço</label>
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg">
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
<div>
<label class="block text-sm font-medium mb-1">Cidade</label>
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg">
</div>
<div>
<label class="block text-sm font-medium mb-1">Estado</label>
<select class="w-full px-4 py-2 border border-gray-300 rounded-lg">
<option>Selecione</option>
<option>SP</option>
<option>RJ</option>
<option>MG</option>
<!-- outros estados -->
</select>
</div>
<div>
<label class="block text-sm font-medium mb-1">CEP</label>
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg">
</div>
</div>
<div class="mb-6">
<label class="block text-sm font-medium mb-1">Telefone</label>
<input type="tel" class="w-full px-4 py-2 border border-gray-300 rounded-lg">
</div>
<div class="flex justify-end">
<button id="next-to-payment" class="bg-red-500 hover:bg-red-600 text-white px-6 py-2 rounded-lg font-medium transition">
PRÓXIMO <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
<!-- Step 2: Payment -->
<div id="step-2" class="checkout-step-content hidden">
<h4 class="font-bold mb-4">MÉTODO DE PAGAMENTO</h4>
<div class="space-y-4 mb-6">
<div class="border border-gray-300 rounded-lg p-4 cursor-pointer hover:border-red-500 payment-method">
<div class="flex items-center">
<input type="radio" name="payment" id="credit-card" class="mr-3" checked>
<label for="credit-card" class="font-medium flex-1">Cartão de Crédito</label>
<div class="flex space-x-2">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/visa/visa-original.svg" alt="Visa" class="w-8">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/mastercard/mastercard-original.svg" alt="Mastercard" class="w-8">
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/apple/apple-original.svg" alt="Apple Pay" class="w-8">
</div>
</div>
<div id="credit-card-details" class="mt-4 pl-7">
<div class="mb-4">
<label class="block text-sm font-medium mb-1">Número do Cartão</label>
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg" placeholder="1234 5678 9012 3456">
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
<div>
<label class="block text-sm font-medium mb-1">Validade</label>
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg" placeholder="MM/AA">
</div>
<div>
<label class="block text-sm font-medium mb-1">CVV</label>
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg" placeholder="123">
</div>
</div>
<div>
<label class="block text-sm font-medium mb-1">Nome no Cartão</label>
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg">
</div>
</div>
</div>
<div class="border border-gray-300 rounded-lg p-4 cursor-pointer hover:border-red-500 payment-method">
<div class="flex items-center">
<input type="radio" name="payment" id="pix" class="mr-3">
<label for="pix" class="font-medium flex-1">PIX</label>
<img src="https://logospng.org/download/pix/logo-pix-icone-1024.png" alt="PIX" class="w-8">
</div>
</div>
<div class="border border-gray-300 rounded-lg p-4 cursor-pointer hover:border-red-500 payment-method">
<div class="flex items-center">
<input type="radio" name="payment" id="boleto" class="mr-3">
<label for="boleto" class="font-medium flex-1">Boleto Bancário</label>
<img src="https://cdn-icons-png.flaticon.com/512/2965/2965300.png" alt="Boleto" class="w-8">
</div>
</div>
</div>
<div class="flex justify-between">
<button id="back-to-address" class="border-2 border-black text-black px-6 py-2 rounded-lg font-medium hover:bg-black hover:text-white transition">
<i class="fas fa-arrow-left mr-2"></i> VOLTAR
</button>
<button id="next-to-review" class="bg-red-500 hover:bg-red-600 text-white px-6 py-2 rounded-lg font-medium transition">
PRÓXIMO <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
<!-- Step 3: Review -->
<div id="step-3" class="checkout-step-content hidden">
<h4 class="font-bold mb-4">REVISAR PEDIDO</h4>
<div class="mb-6">
<h5 class="font-medium mb-2">ENDEREÇO DE ENTREGA</h5>
<div class="bg-gray-100 p-4 rounded-lg">
<p id="review-name">João Silva</p>
<p id="review-address">Rua Exemplo, 123 - Apt 45</p>
<p id="review-city">São Paulo - SP</p>
<p id="review-zip">01234-567</p>
<p id="review-phone">(11) 98765-4321</p>
</div>
</div>
<div class="mb-6">
<h5 class="font-medium mb-2">MÉTODO DE PAGAMENTO</h5>
<div class="bg-gray-100 p-4 rounded-lg">
<p id="review-payment">Cartão de Crédito - Visa ****3456</p>
</div>
</div>
<div class="mb-6">
<h5 class="font-medium mb-2">ITENS DO PEDIDO</h5>
<div id="review-items" class="space-y-4">
<!-- Items will be added here dynamically -->
</div>
</div>
<div class="border-t border-gray-200 pt-4 mb-6">
<div class="flex justify-between font-bold text-lg">
<span>Total do Pedido</span>
<span id="review-total">R$ 0,00</span>
</div>
</div>
<div class="flex justify-between">
<button id="back-to-payment" class="border-2 border-black text-black px-6 py-2 rounded-lg font-medium hover:bg-black hover:text-white transition">
<i class="fas fa-arrow-left mr-2"></i> VOLTAR
</button>
<button id="place-order" class="bg-red-500 hover:bg-red-600 text-white px-6 py-2 rounded-lg font-medium transition">
<i class="fas fa-check-circle mr-2"></i> CONFIRMAR PEDIDO
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Order Confirmation -->
<div id="confirmation-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden">
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 bg-white p-8 rounded-lg shadow-xl max-w-md w-full">
<div class="text-center">
<div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4">
<i class="fas fa-check-circle text-green-500 text-3xl"></i>
</div>
<h3 class="text-xl font-bold mb-2">PEDIDO CONFIRMADO!</h3>
<p class="text-gray-600 mb-6">Obrigado por comprar na BLAKESTORE. Seu pedido #12345 foi recebido e está sendo processado.</p>
<p class="text-sm text-gray-500 mb-6">Um e-mail de confirmação foi enviado para seu endereço de e-mail.</p>
<button id="close-confirmation" class="bg-red-500 hover:bg-red-600 text-white px-6 py-2 rounded-lg font-medium transition">
VOLTAR À LOJA
</button>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-black text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4">BLAKE<span class="text-red-500">STORE</span></h3>
<p class="text-gray-400">Roupas de treino personalizadas para quem busca performance e estilo.</p>
<div class="flex space-x-4 mt-4">
<a href="#" class="text-gray-400 hover:text-red-500"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="text-gray-400 hover:text-red-500"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-gray-400 hover:text-red-500"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-red-500"><i class="fab fa-youtube"></i></a>
</div>
</div>
<div>
<h4 class="font-bold mb-4">LINKS ÚTEIS</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-red-500">Sobre Nós</a></li>
<li><a href="#" class="text-gray-400 hover:text-red-500">Blog</a></li>
<li><a href="#" class="text-gray-400 hover:text-red-500">Como Personalizar</a></li>
<li><a href="#" class="text-gray-400 hover:text-red-500">Política de Privacidade</a></li>
<li><a href="#" class="text-gray-400 hover:text-red-500">Termos de Serviço</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">AJUDA</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-red-500">Central de Ajuda</a></li>
<li><a href="#" class="text-gray-400 hover:text-red-500">Trocas e Devoluções</a></li>
<li><a href="#" class="text-gray-400 hover:text-red-500">Rastrear Pedido</a></li>
<li><a href="#" class="text-gray-400 hover:text-red-500">Formas de Pagamento</a></li>
<li><a href="#" class="text-gray-400 hover:text-red-500">Perguntas Frequentes</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">CONTATO</h4>
<ul class="space-y-2 text-gray-400">
<li class="flex items-center"><i class="fas fa-map-marker-alt mr-2 text-red-500"></i> Av. Paulista, 1000 - São Paulo, SP</li>
<li class="flex items-center"><i class="fas fa-phone-alt mr-2 text-red-500"></i> (11) 1234-5678</li>
<li class="flex items-center"><i class="fas fa-envelope mr-2 text-red-500"></i> contato@blakestore.com</li>
</ul>
<div class="mt-4">
<h5 class="font-medium mb-2">NEWSLETTER</h5>
<div class="flex">
<input type="email" placeholder="Seu e-mail" class="px-4 py-2 bg-gray-800 text-white rounded-l-lg focus:outline-none w-full">
<button class="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-r-lg"><i class="fas fa-paper-plane"></i></button>
</div>
</div>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
<p>&copy; 2023 BLAKESTORE. Todos os direitos reservados.</p>
</div>
</div>
</footer>
<script>
// Mobile Menu Toggle
document.getElementById('mobile-menu-btn').addEventListener('click', function() {
document.getElementById('mobile-menu').classList.toggle('hidden');
});
// Shopping Cart Logic
let cart = [];
let currentProduct = {
name: 'Camiseta',
price: 89.90,
color: 'black',
textColor: 'red',
text: 'SEU TEXTO',
textSize: '24px',
size: 'M',
quantity: 1
};
// Update product price when product changes
document.querySelectorAll('.product-card').forEach(card => {
card.addEventListener('click', function() {
const product = this.dataset.product;
let price = 89.90;
let name = 'Camiseta';
switch(product) {
case 'regata':
price = 79.90;
name = 'Regata';
break;
case 'calca':
price = 129.90;
name = 'Calça';
break;
case 'shorts':
price = 99.90;
name = 'Shorts';
break;
}
currentProduct.price = price;
currentProduct.name = name;
document.getElementById('product-price').textContent = price.toFixed(2).replace('.', ',');
// Update product image
document.getElementById('product-image').src = this.querySelector('img').src;
// Update active state
document.querySelectorAll('.product-card').forEach(c => c.classList.remove('bg-red-100'));
this.classList.add('bg-red-100');
});
});
// Color selection
document.querySelectorAll('.color-option[data-color]').forEach(option => {
option.addEventListener('click', function() {
document.querySelectorAll('.color-option[data-color]').forEach(opt => opt.classList.remove('selected'));
this.classList.add('selected');
currentProduct.color = this.dataset.color;
// Apply color to product image (simplified for demo)
document.getElementById('product-image').style.filter = 'brightness(70%)';
});
});
// Text color selection
document.querySelectorAll('.color-option[data-text-color]').forEach(option => {
option.addEventListener('click', function() {
document.querySelectorAll('.color-option[data-text-color]').forEach(opt => opt.classList.remove('selected'));
this.classList.add('selected');
currentProduct.textColor = this.dataset.color;
document.getElementById('custom-text').style.color = this.dataset.hex;
});
});
// Text customization
document.getElementById('custom-text-input').addEventListener('input', function() {
currentProduct.text = this.value;
document.getElementById('custom-text').textContent = this.value;
});
// Text size
document.getElementById('text-size').addEventListener('change', function() {
currentProduct.textSize = this.value;
document.getElementById('custom-text').style.fontSize = this.value;
});
// Product size
document.getElementById('product-size').addEventListener('change', function() {
currentProduct.size = this.value;
});
// Quantity controls
document.getElementById('increase-qty').addEventListener('click', function() {
const qtyInput = document.getElementById('quantity');
let qty = parseInt(qtyInput.value);
qtyInput.value = qty + 1;
currentProduct.quantity = qty + 1;
});
document.getElementById('decrease-qty').addEventListener('click', function() {
const qtyInput = document.getElementById('quantity');
let qty = parseInt(qtyInput.value);
if (qty > 1) {
qtyInput.value = qty - 1;
currentProduct.quantity = qty - 1;
}
});
// Add to cart
document.getElementById('add-to-cart').addEventListener('click', function() {
// Check if this exact product is already in cart
const existingIndex = cart.findIndex(item =>
item.name === currentProduct.name &&
item.color === currentProduct.color &&
item.text === currentProduct.text &&
item.size === currentProduct.size
);
if (existingIndex >= 0) {
// Update quantity if product already exists
cart[existingIndex].quantity += currentProduct.quantity;
} else {
// Add new product to cart
cart.push({...currentProduct});
}
updateCart();
// Show feedback
this.innerHTML = '<i class="fas fa-check mr-2"></i> ADICIONADO!';
setTimeout(() => {
this.innerHTML = '<i class="fas fa-shopping-cart mr-2"></i> ADICIONAR AO CARRINHO - R$ ' + currentProduct.price.toFixed(2).replace('.', ',');
}, 2000);
});
// Cart modal toggle
document.getElementById('cart-btn').addEventListener('click', function() {
document.getElementById('cart-modal').classList.remove('hidden');
});
document.getElementById('close-cart').addEventListener('click', function() {
document.getElementById('cart-modal').classList.add('hidden');
});
// Update cart display
function updateCart() {
const cartItemsContainer = document.getElementById('cart-items');
const cartCount = document.getElementById('cart-count');
const cartSubtotal = document.getElementById('cart-subtotal');
const cartTotal = document.getElementById('cart-total');
// Update count
const totalItems = cart.reduce((sum, item) => sum + item.quantity, 0);
cartCount.textContent = totalItems;
if (cart.length === 0) {
cartItemsContainer.innerHTML = `
<div class="text-center py-8 text-gray-500">
<i class="fas fa-shopping-cart text-4xl mb-2"></i>
<p>Seu carrinho está vazio</p>
</div>
`;
cartSubtotal.textContent = 'R$ 0,00';
cartTotal.textContent = 'R$ 0,00';
return;
}
// Calculate subtotal
const subtotal = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
cartSubtotal.textContent = 'R$ ' + subtotal.toFixed(2).replace('.', ',');
cartTotal.textContent = 'R$ ' + (subtotal + 15).toFixed(2).replace('.', ','); // Adding fixed shipping
// Render cart items
cartItemsContainer.innerHTML = '';
cart.forEach((item, index) => {
const cartItem = document.createElement('div');
cartItem.className = 'cart-item flex items-center py-4 border-b border-gray-200';
cartItem.innerHTML = `
<div class="w-16 h-16 bg-gray-200 rounded-lg mr-4 overflow-hidden">
<img src="${document.getElementById('product-image').src}" alt="${item.name}" class="w-full h-full object-cover">
<div class="relative">
<div class="absolute inset-0 bg-${item.color}-500 opacity-30"></div>
</div>
</div>
<div class="flex-1">
<h4 class="font-medium">${item.name} ${item.size}</h4>
<p class="text-sm text-gray-500">Cor: ${item.color} | Texto: "${item.text}"</p>
</div>
<div class="flex items-center">
<button class="decrease-item px-2 text-gray-500" data-index="${index}">-</button>
<span class="mx-2">${item.quantity}</span>
<button class="increase-item px-2 text-gray-500" data-index="${index}">+</button>
<span class="ml-4 font-medium">R$ ${(item.price * item.quantity).toFixed(2).replace('.', ',')}</span>
<button class="remove-item ml-4 text-red-500" data-index="${index}">
<i class="fas fa-trash"></i>
</button>
</div>
`;
cartItemsContainer.appendChild(cartItem);
});
// Add event listeners to quantity buttons
document.querySelectorAll('.decrease-item').forEach(btn => {
btn.addEventListener('click', function() {
const index = parseInt(this.dataset.index);
if (cart[index].quantity > 1) {
cart[index].quantity--;
} else {
cart.splice(index, 1);
}
updateCart();
});
});
document.querySelectorAll('.increase-item').forEach(btn => {
btn.addEventListener('click', function() {
const index = parseInt(this.dataset.index);
cart[index].quantity++;
updateCart();
});
});
document.querySelectorAll('.remove-item').forEach(btn => {
btn.addEventListener('click', function() {
const index = parseInt(this.dataset.index);
cart.splice(index, 1);
updateCart();
});
});
}
// Checkout process
document.getElementById('checkout-btn').addEventListener('click', function() {
if (cart.length === 0) return;
document.getElementById('cart-modal').classList.add('hidden');
document.getElementById('checkout-modal').classList.remove('hidden');
// Update review items
updateReviewItems();
});
document.getElementById('close-checkout').addEventListener('click', function() {
document.getElementById('checkout-modal').classList.add('hidden');
});
// Checkout steps navigation
document.getElementById('next-to-payment').addEventListener('click', function() {
document.getElementById('step-1').classList.add('hidden');
document.getElementById('step-2').classList.remove('hidden');
// Update step indicator
document.querySelector('.checkout-step[data-step="1"]').classList.remove('active');
document.querySelector('.checkout-step[data-step="1"]').classList.add('completed');
document.querySelector('.checkout-step[data-step="2"]').classList.add('active');
});
document.getElementById('back-to-address').addEventListener('click', function() {
document.getElementById('step-2').classList.add('hidden');
document.getElementById('step-1').classList.remove('hidden');
// Update step indicator
document.querySelector('.checkout-step[data-step="2"]').classList.remove('active');
document.querySelector('.checkout-step[data-step="1"]').classList.add('active');
document.querySelector('.checkout-step[data-step="1"]').classList.remove('completed');
});
document.getElementById('next-to-review').addEventListener('click', function() {
document.getElementById('step-2').classList.add('hidden');
document.getElementById('step-3').classList.remove('hidden');
// Update step indicator
document.querySelector('.checkout-step[data-step="2"]').classList.remove('active');
document.querySelector('.checkout-step[data-step="2"]').classList.add('completed');
document.querySelector('.checkout-step[data-step="3"]').classList.add('active');
// Update review information
updateReviewInfo();
});
document.getElementById('back-to-payment').addEventListener('click', function() {
document.getElementById('step-3').classList.add('hidden');
document.getElementById('step-2').classList.remove('hidden');
// Update step indicator
document.querySelector('.checkout-step[data-step="3"]').classList.remove('active');
document.querySelector('.checkout-step[data-step="2"]').classList.add('active');
document.querySelector('.checkout-step[data-step="2"]').classList.remove('completed');
});
// Update review information
function updateReviewInfo() {
// Simulate getting form data
document.getElementById('review-name').textContent = 'João Silva';
document.getElementById('review-address').textContent = 'Rua Exemplo, 123 - Apt 45';
document.getElementById('review-city').textContent = 'São Paulo - SP';
document.getElementById('review-zip').textContent = '01234-567';
document.getElementById('review-phone').textContent = '(11) 98765-4321';
// Payment method
const paymentMethod = document.querySelector('input[name="payment"]:checked').id;
let paymentText = '';
switch(paymentMethod) {
case 'credit-card':
paymentText = 'Cartão de Crédito - Visa ****3456';
break;
case 'pix':
paymentText = 'PIX';
break;
case 'boleto':
paymentText = 'Boleto Bancário';
break;
}
document.getElementById('review-payment').textContent = paymentText;
// Total
const subtotal = cart.reduce((sum, item) => sum + (item.price * item.quantity), 0);
document.getElementById('review-total').textContent = 'R$ ' + (subtotal + 15).toFixed(2).replace('.', ',');
}
// Update review items
function updateReviewItems() {
const reviewItemsContainer = document.getElementById('review-items');
reviewItemsContainer.innerHTML = '';
cart.forEach(item => {
const itemElement = document.createElement('div');
itemElement.className = 'flex justify-between items-center';
itemElement.innerHTML = `
<div class="flex items-center">
<div class="w-12 h-12 bg-gray-200 rounded-lg mr-3 overflow-hidden">
<img src="${document.getElementById('product-image').src}" alt="${item.name}" class="w-full h-full object-cover">
</div>
<div>
<h5 class="font-medium">${item.name} ${item.size}</h5>
<p class="text-sm text-gray-500">${item.quantity} x R$ ${item.price.toFixed(2).replace('.', ',')}</p>
</div>
</div>
<span class="font-medium">R$ ${(item.price * item.quantity).toFixed(2).replace('.', ',')}</span>
`;
reviewItemsContainer.appendChild(itemElement);
});
}
// Place order
document.getElementById('place-order').addEventListener('click', function() {
document.getElementById('checkout-modal').classList.add('hidden');
document.getElementById('confirmation-modal').classList.remove('hidden');
// Clear cart
cart = [];
updateCart();
});
// Close confirmation
document.getElementById('close-confirmation').addEventListener('click', function() {
document.getElementById('confirmation-modal').classList.add('hidden');
});
// Payment method selection
document.querySelectorAll('.payment-method').forEach(method => {
method.addEventListener('click', function() {
const radio = this.querySelector('input[type="radio"]');
radio.checked = true;
// Update UI
document.querySelectorAll('.payment-method').forEach(m => {
m.classList.remove('border-red-500');
m.classList.add('border-gray-300');
});
this.classList.remove('border-gray-300');
this.classList.add('border-red-500');
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=BLAKESTOREGG/https-blakestoregg-my-canva-site" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>