Spaces:
Running
Running
why cant you update the products lol
Browse files- index.html +82 -14
- script.js +153 -4
- style.css +100 -4
index.html
CHANGED
|
@@ -34,92 +34,160 @@
|
|
| 34 |
<div class="dessert dessert-5">🍫</div>
|
| 35 |
</div>
|
| 36 |
</section>
|
| 37 |
-
|
| 38 |
<section id="postres" class="products-section">
|
| 39 |
<div class="container">
|
| 40 |
<h2 class="section-title">Nuestras Delicias</h2>
|
| 41 |
-
<div class="
|
| 42 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
<div class="product-image">
|
| 44 |
<img src="https://static.photos/food/320x240/101" alt="Cookie Chispas de Caracas">
|
| 45 |
<div class="product-badge">Best Seller</div>
|
|
|
|
|
|
|
|
|
|
| 46 |
</div>
|
| 47 |
<div class="product-info">
|
| 48 |
<h3 class="product-name">Cookie "Chispas de Caracas"</h3>
|
| 49 |
<p class="product-description">Chispas de Chocolate y Sal Marina</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
<div class="product-price-row">
|
| 51 |
<span class="product-price">$3.50</span>
|
| 52 |
-
<
|
|
|
|
|
|
|
|
|
|
| 53 |
</div>
|
| 54 |
</div>
|
| 55 |
</div>
|
| 56 |
-
<div class="product-card">
|
| 57 |
<div class="product-image">
|
| 58 |
<img src="https://static.photos/food/320x240/102" alt="Mini Tarta Parchita Tropical">
|
| 59 |
<div class="product-badge">Nuevo</div>
|
|
|
|
|
|
|
|
|
|
| 60 |
</div>
|
| 61 |
<div class="product-info">
|
| 62 |
<h3 class="product-name">Mini Tarta "Parchita Tropical"</h3>
|
| 63 |
<p class="product-description">Parchita y Merengue Suizo</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
<div class="product-price-row">
|
| 65 |
<span class="product-price">$4.50</span>
|
| 66 |
-
<
|
|
|
|
|
|
|
|
|
|
| 67 |
</div>
|
| 68 |
</div>
|
| 69 |
</div>
|
| 70 |
-
<div class="product-card">
|
| 71 |
<div class="product-image">
|
| 72 |
<img src="https://static.photos/food/320x240/103" alt="Quesillo Recuerdo de Abuela">
|
| 73 |
<div class="product-badge">Tradicional</div>
|
|
|
|
|
|
|
|
|
|
| 74 |
</div>
|
| 75 |
<div class="product-info">
|
| 76 |
<h3 class="product-name">Quesillo "Recuerdo de Abuela"</h3>
|
| 77 |
<p class="product-description">Quesillo Cremoso</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
<div class="product-price-row">
|
| 79 |
<span class="product-price">$5.00</span>
|
| 80 |
-
<
|
|
|
|
|
|
|
|
|
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
</div>
|
| 84 |
-
<div class="product-card">
|
| 85 |
<div class="product-image">
|
| 86 |
<img src="https://static.photos/food/320x240/104" alt="Brownie Chocovenezolano Supremo">
|
| 87 |
<div class="product-badge">Premium</div>
|
|
|
|
|
|
|
|
|
|
| 88 |
</div>
|
| 89 |
<div class="product-info">
|
| 90 |
<h3 class="product-name">Brownie "Chocovenezolano Supremo"</h3>
|
| 91 |
<p class="product-description">Brownie con Ganache y Nueces</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
<div class="product-price-row">
|
| 93 |
<span class="product-price">$6.00</span>
|
| 94 |
-
<
|
|
|
|
|
|
|
|
|
|
| 95 |
</div>
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
-
<div class="product-card">
|
| 99 |
<div class="product-image">
|
| 100 |
<img src="https://static.photos/food/320x240/105" alt="Cheesecake Fresita Caraqueña">
|
| 101 |
<div class="product-badge">Original</div>
|
|
|
|
|
|
|
|
|
|
| 102 |
</div>
|
| 103 |
<div class="product-info">
|
| 104 |
<h3 class="product-name">Cheesecake "Fresita Caraqueña"</h3>
|
| 105 |
<p class="product-description">Cheesecake de Fresa en frasco</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
<div class="product-price-row">
|
| 107 |
<span class="product-price">$4.50</span>
|
| 108 |
-
<
|
|
|
|
|
|
|
|
|
|
| 109 |
</div>
|
| 110 |
</div>
|
| 111 |
</div>
|
| 112 |
-
<div class="product-card">
|
| 113 |
<div class="product-image">
|
| 114 |
<img src="https://static.photos/food/320x240/106" alt="Tres Leches Mango Playero">
|
| 115 |
<div class="product-badge">Temporada</div>
|
|
|
|
|
|
|
|
|
|
| 116 |
</div>
|
| 117 |
<div class="product-info">
|
| 118 |
<h3 class="product-name">Tres Leches "Mango Playero"</h3>
|
| 119 |
<p class="product-description">Mini Torta de Tres Leches de Mango</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
<div class="product-price-row">
|
| 121 |
<span class="product-price">$5.50</span>
|
| 122 |
-
<
|
|
|
|
|
|
|
|
|
|
| 123 |
</div>
|
| 124 |
</div>
|
| 125 |
</div>
|
|
|
|
| 34 |
<div class="dessert dessert-5">🍫</div>
|
| 35 |
</div>
|
| 36 |
</section>
|
|
|
|
| 37 |
<section id="postres" class="products-section">
|
| 38 |
<div class="container">
|
| 39 |
<h2 class="section-title">Nuestras Delicias</h2>
|
| 40 |
+
<div class="product-filters">
|
| 41 |
+
<button class="filter-btn active" data-filter="all">Todos</button>
|
| 42 |
+
<button class="filter-btn" data-filter="cookies">Cookies</button>
|
| 43 |
+
<button class="filter-btn" data-filter="tartas">Tartas</button>
|
| 44 |
+
<button class="filter-btn" data-filter="brownies">Brownies</button>
|
| 45 |
+
<button class="filter-btn" data-filter="cheesecakes">Cheesecakes</button>
|
| 46 |
+
<button class="filter-btn" data-filter="tortas">Tortas</button>
|
| 47 |
+
<button class="filter-btn" data-filter="tradicionales">Tradicionales</button>
|
| 48 |
+
</div>
|
| 49 |
+
<div class="products-grid">
|
| 50 |
+
<div class="product-card" data-category="cookies" data-price="3.50">
|
| 51 |
<div class="product-image">
|
| 52 |
<img src="https://static.photos/food/320x240/101" alt="Cookie Chispas de Caracas">
|
| 53 |
<div class="product-badge">Best Seller</div>
|
| 54 |
+
<div class="product-overlay">
|
| 55 |
+
<div class="quick-view">👁️ Vista Rápida</div>
|
| 56 |
+
</div>
|
| 57 |
</div>
|
| 58 |
<div class="product-info">
|
| 59 |
<h3 class="product-name">Cookie "Chispas de Caracas"</h3>
|
| 60 |
<p class="product-description">Chispas de Chocolate y Sal Marina</p>
|
| 61 |
+
<div class="product-meta">
|
| 62 |
+
<span class="product-tag">🍪 Cookies</span>
|
| 63 |
+
<span class="product-time">⏰ 30 min</span>
|
| 64 |
+
</div>
|
| 65 |
<div class="product-price-row">
|
| 66 |
<span class="product-price">$3.50</span>
|
| 67 |
+
<div class="product-actions">
|
| 68 |
+
<button class="btn-quick-add">+ Rápido</button>
|
| 69 |
+
<button class="btn-order">Pedir Ahora</button>
|
| 70 |
+
</div>
|
| 71 |
</div>
|
| 72 |
</div>
|
| 73 |
</div>
|
| 74 |
+
<div class="product-card" data-category="tartas" data-price="4.50">
|
| 75 |
<div class="product-image">
|
| 76 |
<img src="https://static.photos/food/320x240/102" alt="Mini Tarta Parchita Tropical">
|
| 77 |
<div class="product-badge">Nuevo</div>
|
| 78 |
+
<div class="product-overlay">
|
| 79 |
+
<div class="quick-view">👁️ Vista Rápida</div>
|
| 80 |
+
</div>
|
| 81 |
</div>
|
| 82 |
<div class="product-info">
|
| 83 |
<h3 class="product-name">Mini Tarta "Parchita Tropical"</h3>
|
| 84 |
<p class="product-description">Parchita y Merengue Suizo</p>
|
| 85 |
+
<div class="product-meta">
|
| 86 |
+
<span class="product-tag">🥧 Tartas</span>
|
| 87 |
+
<span class="product-time">⏰ 45 min</span>
|
| 88 |
+
</div>
|
| 89 |
<div class="product-price-row">
|
| 90 |
<span class="product-price">$4.50</span>
|
| 91 |
+
<div class="product-actions">
|
| 92 |
+
<button class="btn-quick-add">+ Rápido</button>
|
| 93 |
+
<button class="btn-order">Pedir Ahora</button>
|
| 94 |
+
</div>
|
| 95 |
</div>
|
| 96 |
</div>
|
| 97 |
</div>
|
| 98 |
+
<div class="product-card" data-category="tradicionales" data-price="5.00">
|
| 99 |
<div class="product-image">
|
| 100 |
<img src="https://static.photos/food/320x240/103" alt="Quesillo Recuerdo de Abuela">
|
| 101 |
<div class="product-badge">Tradicional</div>
|
| 102 |
+
<div class="product-overlay">
|
| 103 |
+
<div class="quick-view">👁️ Vista Rápida</div>
|
| 104 |
+
</div>
|
| 105 |
</div>
|
| 106 |
<div class="product-info">
|
| 107 |
<h3 class="product-name">Quesillo "Recuerdo de Abuela"</h3>
|
| 108 |
<p class="product-description">Quesillo Cremoso</p>
|
| 109 |
+
<div class="product-meta">
|
| 110 |
+
<span class="product-tag">🍮 Tradicionales</span>
|
| 111 |
+
<span class="product-time">⏰ 20 min</span>
|
| 112 |
+
</div>
|
| 113 |
<div class="product-price-row">
|
| 114 |
<span class="product-price">$5.00</span>
|
| 115 |
+
<div class="product-actions">
|
| 116 |
+
<button class="btn-quick-add">+ Rápido</button>
|
| 117 |
+
<button class="btn-order">Pedir Ahora</button>
|
| 118 |
+
</div>
|
| 119 |
</div>
|
| 120 |
</div>
|
| 121 |
</div>
|
| 122 |
+
<div class="product-card" data-category="brownies" data-price="6.00">
|
| 123 |
<div class="product-image">
|
| 124 |
<img src="https://static.photos/food/320x240/104" alt="Brownie Chocovenezolano Supremo">
|
| 125 |
<div class="product-badge">Premium</div>
|
| 126 |
+
<div class="product-overlay">
|
| 127 |
+
<div class="quick-view">👁️ Vista Rápida</div>
|
| 128 |
+
</div>
|
| 129 |
</div>
|
| 130 |
<div class="product-info">
|
| 131 |
<h3 class="product-name">Brownie "Chocovenezolano Supremo"</h3>
|
| 132 |
<p class="product-description">Brownie con Ganache y Nueces</p>
|
| 133 |
+
<div class="product-meta">
|
| 134 |
+
<span class="product-tag">🍫 Brownies</span>
|
| 135 |
+
<span class="product-time">⏰ 25 min</span>
|
| 136 |
+
</div>
|
| 137 |
<div class="product-price-row">
|
| 138 |
<span class="product-price">$6.00</span>
|
| 139 |
+
<div class="product-actions">
|
| 140 |
+
<button class="btn-quick-add">+ Rápido</button>
|
| 141 |
+
<button class="btn-order">Pedir Ahora</button>
|
| 142 |
+
</div>
|
| 143 |
</div>
|
| 144 |
</div>
|
| 145 |
</div>
|
| 146 |
+
<div class="product-card" data-category="cheesecakes" data-price="4.50">
|
| 147 |
<div class="product-image">
|
| 148 |
<img src="https://static.photos/food/320x240/105" alt="Cheesecake Fresita Caraqueña">
|
| 149 |
<div class="product-badge">Original</div>
|
| 150 |
+
<div class="product-overlay">
|
| 151 |
+
<div class="quick-view">👁️ Vista Rápida</div>
|
| 152 |
+
</div>
|
| 153 |
</div>
|
| 154 |
<div class="product-info">
|
| 155 |
<h3 class="product-name">Cheesecake "Fresita Caraqueña"</h3>
|
| 156 |
<p class="product-description">Cheesecake de Fresa en frasco</p>
|
| 157 |
+
<div class="product-meta">
|
| 158 |
+
<span class="product-tag">🍓 Cheesecakes</span>
|
| 159 |
+
<span class="product-time">⏰ 15 min</span>
|
| 160 |
+
</div>
|
| 161 |
<div class="product-price-row">
|
| 162 |
<span class="product-price">$4.50</span>
|
| 163 |
+
<div class="product-actions">
|
| 164 |
+
<button class="btn-quick-add">+ Rápido</button>
|
| 165 |
+
<button class="btn-order">Pedir Ahora</button>
|
| 166 |
+
</div>
|
| 167 |
</div>
|
| 168 |
</div>
|
| 169 |
</div>
|
| 170 |
+
<div class="product-card" data-category="tortas" data-price="5.50">
|
| 171 |
<div class="product-image">
|
| 172 |
<img src="https://static.photos/food/320x240/106" alt="Tres Leches Mango Playero">
|
| 173 |
<div class="product-badge">Temporada</div>
|
| 174 |
+
<div class="product-overlay">
|
| 175 |
+
<div class="quick-view">👁️ Vista Rápida</div>
|
| 176 |
+
</div>
|
| 177 |
</div>
|
| 178 |
<div class="product-info">
|
| 179 |
<h3 class="product-name">Tres Leches "Mango Playero"</h3>
|
| 180 |
<p class="product-description">Mini Torta de Tres Leches de Mango</p>
|
| 181 |
+
<div class="product-meta">
|
| 182 |
+
<span class="product-tag">🎂 Tortas</span>
|
| 183 |
+
<span class="product-time">⏰ 35 min</span>
|
| 184 |
+
</div>
|
| 185 |
<div class="product-price-row">
|
| 186 |
<span class="product-price">$5.50</span>
|
| 187 |
+
<div class="product-actions">
|
| 188 |
+
<button class="btn-quick-add">+ Rápido</button>
|
| 189 |
+
<button class="btn-order">Pedir Ahora</button>
|
| 190 |
+
</div>
|
| 191 |
</div>
|
| 192 |
</div>
|
| 193 |
</div>
|
script.js
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
|
|
| 1 |
// Smooth scroll for navigation links
|
| 2 |
document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
// Order button functionality
|
| 4 |
const orderButtons = document.querySelectorAll('.btn-order');
|
| 5 |
-
|
| 6 |
orderButtons.forEach(button => {
|
| 7 |
button.addEventListener('click', function() {
|
| 8 |
const productName = this.closest('.product-card').querySelector('.product-name').textContent;
|
|
@@ -12,7 +36,72 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 12 |
});
|
| 13 |
});
|
| 14 |
|
| 15 |
-
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
const observerOptions = {
|
| 17 |
threshold: 0.1,
|
| 18 |
rootMargin: '0px 0px -50px 0px'
|
|
@@ -93,7 +182,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 93 |
}
|
| 94 |
`;
|
| 95 |
document.head.appendChild(whatsappStyle);
|
| 96 |
-
|
| 97 |
// Instagram feed mockup interaction
|
| 98 |
const instagramPosts = document.querySelectorAll('.instagram-post');
|
| 99 |
instagramPosts.forEach((post, index) => {
|
|
@@ -101,4 +189,65 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 101 |
window.open('https://instagram.com/tryme_vnzl', '_blank');
|
| 102 |
});
|
| 103 |
});
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
// Smooth scroll for navigation links
|
| 3 |
document.addEventListener('DOMContentLoaded', function() {
|
| 4 |
+
// Product filter functionality
|
| 5 |
+
const filterButtons = document.querySelectorAll('.filter-btn');
|
| 6 |
+
const productCards = document.querySelectorAll('.product-card');
|
| 7 |
+
|
| 8 |
+
filterButtons.forEach(button => {
|
| 9 |
+
button.addEventListener('click', () => {
|
| 10 |
+
const filter = button.dataset.filter;
|
| 11 |
+
|
| 12 |
+
// Update active button
|
| 13 |
+
filterButtons.forEach(btn => btn.classList.remove('active'));
|
| 14 |
+
button.classList.add('active');
|
| 15 |
+
|
| 16 |
+
// Filter products
|
| 17 |
+
productCards.forEach(card => {
|
| 18 |
+
if (filter === 'all' || card.dataset.category === filter) {
|
| 19 |
+
card.classList.remove('hidden');
|
| 20 |
+
card.style.animation = 'fadeInUp 0.5s ease-out';
|
| 21 |
+
} else {
|
| 22 |
+
card.classList.add('hidden');
|
| 23 |
+
}
|
| 24 |
+
});
|
| 25 |
+
});
|
| 26 |
+
});
|
| 27 |
+
|
| 28 |
// Order button functionality
|
| 29 |
const orderButtons = document.querySelectorAll('.btn-order');
|
|
|
|
| 30 |
orderButtons.forEach(button => {
|
| 31 |
button.addEventListener('click', function() {
|
| 32 |
const productName = this.closest('.product-card').querySelector('.product-name').textContent;
|
|
|
|
| 36 |
});
|
| 37 |
});
|
| 38 |
|
| 39 |
+
// Quick add functionality
|
| 40 |
+
const quickAddButtons = document.querySelectorAll('.btn-quick-add');
|
| 41 |
+
let cartItems = [];
|
| 42 |
+
|
| 43 |
+
quickAddButtons.forEach(button => {
|
| 44 |
+
button.addEventListener('click', function() {
|
| 45 |
+
const card = this.closest('.product-card');
|
| 46 |
+
const productName = card.querySelector('.product-name').textContent;
|
| 47 |
+
const productPrice = card.dataset.price;
|
| 48 |
+
|
| 49 |
+
// Add to cart
|
| 50 |
+
cartItems.push({ name: productName, price: productPrice });
|
| 51 |
+
|
| 52 |
+
// Show feedback
|
| 53 |
+
button.textContent = '✓ Añadido';
|
| 54 |
+
button.style.background = 'var(--coral)';
|
| 55 |
+
|
| 56 |
+
setTimeout(() => {
|
| 57 |
+
button.textContent = '+ Rápido';
|
| 58 |
+
button.style.background = 'var(--dorado)';
|
| 59 |
+
}, 2000);
|
| 60 |
+
|
| 61 |
+
// Update cart notification
|
| 62 |
+
updateCartNotification();
|
| 63 |
+
});
|
| 64 |
+
});
|
| 65 |
+
|
| 66 |
+
function updateCartNotification() {
|
| 67 |
+
const cartCount = document.querySelector('.cart-count');
|
| 68 |
+
if (cartCount) {
|
| 69 |
+
cartCount.textContent = cartItems.length;
|
| 70 |
+
} else {
|
| 71 |
+
const cartNotification = document.createElement('div');
|
| 72 |
+
cartNotification.className = 'cart-notification';
|
| 73 |
+
cartNotification.innerHTML = `
|
| 74 |
+
<div class="cart-icon">🛒</div>
|
| 75 |
+
<span class="cart-count">${cartItems.length}</span>
|
| 76 |
+
`;
|
| 77 |
+
cartNotification.style.cssText = `
|
| 78 |
+
position: fixed;
|
| 79 |
+
top: 100px;
|
| 80 |
+
right: 20px;
|
| 81 |
+
background: var(--coral);
|
| 82 |
+
color: white;
|
| 83 |
+
padding: 1rem;
|
| 84 |
+
border-radius: 50%;
|
| 85 |
+
width: 60px;
|
| 86 |
+
height: 60px;
|
| 87 |
+
display: flex;
|
| 88 |
+
align-items: center;
|
| 89 |
+
justify-content: center;
|
| 90 |
+
font-size: 1.5rem;
|
| 91 |
+
z-index: 999;
|
| 92 |
+
cursor: pointer;
|
| 93 |
+
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
|
| 94 |
+
`;
|
| 95 |
+
document.body.appendChild(cartNotification);
|
| 96 |
+
|
| 97 |
+
cartNotification.addEventListener('click', () => {
|
| 98 |
+
const cartMessage = `¡Hola! Tengo ${cartItems.length} productos en mi carrito. Me gustaría confirmar mi pedido.`;
|
| 99 |
+
const whatsappUrl = `https://wa.me/584141234567?text=${encodeURIComponent(cartMessage)}`;
|
| 100 |
+
window.open(whatsappUrl, '_blank');
|
| 101 |
+
});
|
| 102 |
+
}
|
| 103 |
+
}
|
| 104 |
+
// Intersection Observer for animations
|
| 105 |
const observerOptions = {
|
| 106 |
threshold: 0.1,
|
| 107 |
rootMargin: '0px 0px -50px 0px'
|
|
|
|
| 182 |
}
|
| 183 |
`;
|
| 184 |
document.head.appendChild(whatsappStyle);
|
|
|
|
| 185 |
// Instagram feed mockup interaction
|
| 186 |
const instagramPosts = document.querySelectorAll('.instagram-post');
|
| 187 |
instagramPosts.forEach((post, index) => {
|
|
|
|
| 189 |
window.open('https://instagram.com/tryme_vnzl', '_blank');
|
| 190 |
});
|
| 191 |
});
|
| 192 |
+
|
| 193 |
+
// Quick view functionality
|
| 194 |
+
const quickViews = document.querySelectorAll('.quick-view');
|
| 195 |
+
quickViews.forEach(view => {
|
| 196 |
+
view.addEventListener('click', (e) => {
|
| 197 |
+
e.stopPropagation();
|
| 198 |
+
const card = view.closest('.product-card');
|
| 199 |
+
const productName = card.querySelector('.product-name').textContent;
|
| 200 |
+
const productDescription = card.querySelector('.product-description').textContent;
|
| 201 |
+
const productPrice = card.querySelector('.product-price').textContent;
|
| 202 |
+
const productImage = card.querySelector('.product-image img').src;
|
| 203 |
+
|
| 204 |
+
// Create modal
|
| 205 |
+
const modal = document.createElement('div');
|
| 206 |
+
modal.className = 'product-modal';
|
| 207 |
+
modal.innerHTML = `
|
| 208 |
+
<div class="modal-content">
|
| 209 |
+
<span class="modal-close">×</span>
|
| 210 |
+
<img src="${productImage}" alt="${productName}">
|
| 211 |
+
<h3>${productName}</h3>
|
| 212 |
+
<p>${productDescription}</p>
|
| 213 |
+
<div class="modal-price">${productPrice}</div>
|
| 214 |
+
<button class="btn-order">Pedir Ahora</button>
|
| 215 |
+
</div>
|
| 216 |
+
`;
|
| 217 |
+
|
| 218 |
+
modal.style.cssText = `
|
| 219 |
+
position: fixed;
|
| 220 |
+
top: 0;
|
| 221 |
+
left: 0;
|
| 222 |
+
width: 100%;
|
| 223 |
+
height: 100%;
|
| 224 |
+
background: rgba(0,0,0,0.8);
|
| 225 |
+
display: flex;
|
| 226 |
+
align-items: center;
|
| 227 |
+
justify-content: center;
|
| 228 |
+
z-index: 2000;
|
| 229 |
+
`;
|
| 230 |
+
|
| 231 |
+
document.body.appendChild(modal);
|
| 232 |
+
|
| 233 |
+
// Close modal
|
| 234 |
+
modal.querySelector('.modal-close').addEventListener('click', () => {
|
| 235 |
+
modal.remove();
|
| 236 |
+
});
|
| 237 |
+
|
| 238 |
+
modal.addEventListener('click', (e) => {
|
| 239 |
+
if (e.target === modal) {
|
| 240 |
+
modal.remove();
|
| 241 |
+
}
|
| 242 |
+
});
|
| 243 |
+
|
| 244 |
+
// Order button in modal
|
| 245 |
+
modal.querySelector('.btn-order').addEventListener('click', () => {
|
| 246 |
+
const message = `¡Hola! Me gustaría ordenar: ${productName}`;
|
| 247 |
+
const whatsappUrl = `https://wa.me/584141234567?text=${encodeURIComponent(message)}`;
|
| 248 |
+
window.open(whatsappUrl, '_blank');
|
| 249 |
+
modal.remove();
|
| 250 |
+
});
|
| 251 |
+
});
|
| 252 |
+
});
|
| 253 |
+
});
|
style.css
CHANGED
|
@@ -187,6 +187,32 @@ body {
|
|
| 187 |
font-size: 2rem;
|
| 188 |
margin-top: 0.5rem;
|
| 189 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
|
| 191 |
/* Products Grid */
|
| 192 |
.products-grid {
|
|
@@ -196,6 +222,9 @@ body {
|
|
| 196 |
margin-bottom: 3rem;
|
| 197 |
}
|
| 198 |
|
|
|
|
|
|
|
|
|
|
| 199 |
.product-card {
|
| 200 |
background: white;
|
| 201 |
border-radius: 20px;
|
|
@@ -229,11 +258,43 @@ body {
|
|
| 229 |
object-fit: cover;
|
| 230 |
transition: transform 0.3s ease;
|
| 231 |
}
|
| 232 |
-
|
| 233 |
.product-card:hover .product-image img {
|
| 234 |
transform: scale(1.1);
|
| 235 |
}
|
| 236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 237 |
.product-badge {
|
| 238 |
position: absolute;
|
| 239 |
top: 1rem;
|
|
@@ -256,14 +317,28 @@ body {
|
|
| 256 |
margin-bottom: 0.5rem;
|
| 257 |
font-weight: 600;
|
| 258 |
}
|
| 259 |
-
|
| 260 |
.product-description {
|
| 261 |
color: var(--chocolate);
|
| 262 |
opacity: 0.8;
|
| 263 |
-
margin-bottom:
|
| 264 |
line-height: 1.6;
|
| 265 |
}
|
| 266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
.product-price-row {
|
| 268 |
display: flex;
|
| 269 |
justify-content: space-between;
|
|
@@ -283,12 +358,33 @@ body {
|
|
| 283 |
font-size: 1rem;
|
| 284 |
border-radius: 25px;
|
| 285 |
}
|
| 286 |
-
|
| 287 |
.btn-order:hover {
|
| 288 |
background: var(--dorado);
|
| 289 |
transform: scale(1.05);
|
| 290 |
}
|
| 291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
/* Story Section */
|
| 293 |
.story-section {
|
| 294 |
background: linear-gradient(135deg, var(--crema) 0%, rgba(228,147,122,0.1) 100%);
|
|
|
|
| 187 |
font-size: 2rem;
|
| 188 |
margin-top: 0.5rem;
|
| 189 |
}
|
| 190 |
+
/* Product Filters */
|
| 191 |
+
.product-filters {
|
| 192 |
+
display: flex;
|
| 193 |
+
justify-content: center;
|
| 194 |
+
gap: 1rem;
|
| 195 |
+
margin-bottom: 3rem;
|
| 196 |
+
flex-wrap: wrap;
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
.filter-btn {
|
| 200 |
+
background: white;
|
| 201 |
+
color: var(--chocolate);
|
| 202 |
+
border: 2px solid var(--coral);
|
| 203 |
+
padding: 0.8rem 1.5rem;
|
| 204 |
+
border-radius: 25px;
|
| 205 |
+
font-size: 1rem;
|
| 206 |
+
font-weight: 500;
|
| 207 |
+
cursor: pointer;
|
| 208 |
+
transition: all 0.3s ease;
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
.filter-btn:hover,
|
| 212 |
+
.filter-btn.active {
|
| 213 |
+
background: var(--coral);
|
| 214 |
+
color: white;
|
| 215 |
+
}
|
| 216 |
|
| 217 |
/* Products Grid */
|
| 218 |
.products-grid {
|
|
|
|
| 222 |
margin-bottom: 3rem;
|
| 223 |
}
|
| 224 |
|
| 225 |
+
.product-card.hidden {
|
| 226 |
+
display: none;
|
| 227 |
+
}
|
| 228 |
.product-card {
|
| 229 |
background: white;
|
| 230 |
border-radius: 20px;
|
|
|
|
| 258 |
object-fit: cover;
|
| 259 |
transition: transform 0.3s ease;
|
| 260 |
}
|
|
|
|
| 261 |
.product-card:hover .product-image img {
|
| 262 |
transform: scale(1.1);
|
| 263 |
}
|
| 264 |
|
| 265 |
+
.product-overlay {
|
| 266 |
+
position: absolute;
|
| 267 |
+
top: 0;
|
| 268 |
+
left: 0;
|
| 269 |
+
right: 0;
|
| 270 |
+
bottom: 0;
|
| 271 |
+
background: rgba(74, 44, 42, 0.7);
|
| 272 |
+
display: flex;
|
| 273 |
+
align-items: center;
|
| 274 |
+
justify-content: center;
|
| 275 |
+
opacity: 0;
|
| 276 |
+
transition: opacity 0.3s ease;
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
.product-card:hover .product-overlay {
|
| 280 |
+
opacity: 1;
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
.quick-view {
|
| 284 |
+
color: white;
|
| 285 |
+
font-size: 1.2rem;
|
| 286 |
+
font-weight: 600;
|
| 287 |
+
cursor: pointer;
|
| 288 |
+
padding: 0.8rem 1.5rem;
|
| 289 |
+
background: var(--coral);
|
| 290 |
+
border-radius: 25px;
|
| 291 |
+
transition: all 0.3s ease;
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
.quick-view:hover {
|
| 295 |
+
background: var(--dorado);
|
| 296 |
+
transform: scale(1.05);
|
| 297 |
+
}
|
| 298 |
.product-badge {
|
| 299 |
position: absolute;
|
| 300 |
top: 1rem;
|
|
|
|
| 317 |
margin-bottom: 0.5rem;
|
| 318 |
font-weight: 600;
|
| 319 |
}
|
|
|
|
| 320 |
.product-description {
|
| 321 |
color: var(--chocolate);
|
| 322 |
opacity: 0.8;
|
| 323 |
+
margin-bottom: 1rem;
|
| 324 |
line-height: 1.6;
|
| 325 |
}
|
| 326 |
|
| 327 |
+
.product-meta {
|
| 328 |
+
display: flex;
|
| 329 |
+
gap: 1rem;
|
| 330 |
+
margin-bottom: 1.5rem;
|
| 331 |
+
flex-wrap: wrap;
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
.product-tag, .product-time {
|
| 335 |
+
font-size: 0.9rem;
|
| 336 |
+
color: var(--coral);
|
| 337 |
+
background: rgba(228, 147, 122, 0.1);
|
| 338 |
+
padding: 0.3rem 0.8rem;
|
| 339 |
+
border-radius: 15px;
|
| 340 |
+
font-weight: 500;
|
| 341 |
+
}
|
| 342 |
.product-price-row {
|
| 343 |
display: flex;
|
| 344 |
justify-content: space-between;
|
|
|
|
| 358 |
font-size: 1rem;
|
| 359 |
border-radius: 25px;
|
| 360 |
}
|
|
|
|
| 361 |
.btn-order:hover {
|
| 362 |
background: var(--dorado);
|
| 363 |
transform: scale(1.05);
|
| 364 |
}
|
| 365 |
|
| 366 |
+
.product-actions {
|
| 367 |
+
display: flex;
|
| 368 |
+
gap: 0.5rem;
|
| 369 |
+
align-items: center;
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
.btn-quick-add {
|
| 373 |
+
background: var(--dorado);
|
| 374 |
+
color: white;
|
| 375 |
+
border: none;
|
| 376 |
+
padding: 0.6rem 1rem;
|
| 377 |
+
border-radius: 20px;
|
| 378 |
+
font-size: 0.9rem;
|
| 379 |
+
font-weight: 600;
|
| 380 |
+
cursor: pointer;
|
| 381 |
+
transition: all 0.3s ease;
|
| 382 |
+
}
|
| 383 |
+
|
| 384 |
+
.btn-quick-add:hover {
|
| 385 |
+
background: var(--coral);
|
| 386 |
+
transform: scale(1.05);
|
| 387 |
+
}
|
| 388 |
/* Story Section */
|
| 389 |
.story-section {
|
| 390 |
background: linear-gradient(135deg, var(--crema) 0%, rgba(228,147,122,0.1) 100%);
|