-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduct.html
More file actions
456 lines (427 loc) Β· 19.9 KB
/
Copy pathproduct.html
File metadata and controls
456 lines (427 loc) Β· 19.9 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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Classic White Tee β ThreadCo</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<!-- Announcement Bar -->
<div class="announcement-bar">
Free shipping on orders over $75 Β· Use code <strong>THREAD10</strong> for 10% off your first order
</div>
<!-- Header -->
<header class="site-header">
<div class="header-inner">
<button class="icon-btn mobile-menu-btn" onclick="openMobileMenu()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
</button>
<a href="index.html" class="logo">Thread<span>Co</span></a>
<nav class="main-nav">
<a href="index.html">Home</a>
<a href="collection.html" class="active">Shop All</a>
<a href="collection.html?cat=essentials">Essentials</a>
<a href="collection.html?cat=graphic">Graphic Tees</a>
<a href="collection.html?cat=premium">Premium</a>
<a href="#">Sale</a>
</nav>
<div class="header-actions">
<button class="icon-btn" aria-label="Search">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>
</button>
<button class="icon-btn" aria-label="Account">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
</button>
<button class="icon-btn" aria-label="Cart" data-cart-open>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z"/><line x1="3" y1="6" x2="21" y2="6"/><path d="M16 10a4 4 0 01-8 0"/></svg>
<span class="cart-count">0</span>
</button>
</div>
</div>
</header>
<!-- Mobile Nav -->
<nav class="mobile-nav">
<div class="mobile-nav-header">
<a href="index.html" class="logo">Thread<span>Co</span></a>
<button class="icon-btn" onclick="closeMobileMenu()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</div>
<a href="index.html" class="mobile-link">Home</a>
<a href="collection.html" class="mobile-link">Shop All</a>
<a href="collection.html?cat=essentials" class="mobile-link">Essentials</a>
<a href="collection.html?cat=graphic" class="mobile-link">Graphic Tees</a>
<a href="collection.html?cat=premium" class="mobile-link">Premium</a>
</nav>
<!-- Cart Overlay -->
<div class="cart-overlay"></div>
<!-- Cart Drawer -->
<div class="cart-drawer">
<div class="cart-header">
<h2>Your Cart</h2>
<button class="icon-btn cart-close">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
</button>
</div>
<div class="cart-body"></div>
<div class="cart-footer">
<div class="cart-subtotal">
<span>Subtotal</span>
<span class="cart-total-val">$0.00</span>
</div>
<p class="cart-note">Shipping & taxes calculated at checkout</p>
<a href="#" class="cart-checkout" onclick="showToast('Checkout coming soon!')">Checkout</a>
<a href="#" class="cart-continue" onclick="closeCart(); return false;">Continue Shopping β</a>
</div>
</div>
<!-- Breadcrumb -->
<div style="padding: 16px 24px; max-width:1280px; margin:0 auto;">
<div class="breadcrumb" style="color:var(--gray-400); font-size:13px;">
<a href="index.html" style="color:var(--gray-600)">Home</a> /
<a href="collection.html" style="color:var(--gray-600)">All Shirts</a> /
Classic White Tee
</div>
</div>
<!-- Product Page -->
<div class="product-page">
<!-- Gallery -->
<div class="product-gallery">
<div class="product-main-img" id="main-img">π</div>
<div class="product-thumbs">
<div class="product-thumb active" onclick="selectThumb(this, 'π')">π</div>
<div class="product-thumb" onclick="selectThumb(this, 'π')">π</div>
<div class="product-thumb" onclick="selectThumb(this, 'π½')">π½</div>
<div class="product-thumb" onclick="selectThumb(this, 'π§΅')">π§΅</div>
</div>
</div>
<!-- Info -->
<div class="product-info">
<div class="product-info-vendor">ThreadCo Essentials</div>
<h1 id="product-name">Classic White Tee</h1>
<div class="product-info-rating">
<span class="stars" style="color:#f59e0b">β
β
β
β
β
</span>
<span class="rating-count">4.9 out of 5 Β· <a href="#reviews" style="color:var(--accent)">284 reviews</a></span>
</div>
<div class="product-info-price">
<span id="product-price">$34.00</span>
</div>
<p class="product-description">
Our most beloved everyday tee. Cut from 100% GOTS-certified organic cotton with a perfect medium weight (180gsm) β substantial enough to drape well, light enough for all-day comfort. Pre-washed so it stays true to size and softens beautifully over time.
</p>
<!-- Color -->
<div class="variant-section">
<p class="variant-label">Color: <span id="selected-color">White</span></p>
<div class="color-list">
<span class="color-option selected" style="background:#f9f9f9; box-shadow:0 0 0 1.5px #ddd" title="White"
onclick="selectColor(this, 'White')"></span>
<span class="color-option" style="background:#1a1a1a" title="Black"
onclick="selectColor(this, 'Black')"></span>
<span class="color-option" style="background:#9ca3af" title="Heather Gray"
onclick="selectColor(this, 'Heather Gray')"></span>
<span class="color-option" style="background:#1e3a5f" title="Navy"
onclick="selectColor(this, 'Navy')"></span>
<span class="color-option" style="background:#fcd34d" title="Sand"
onclick="selectColor(this, 'Sand')"></span>
</div>
</div>
<!-- Size -->
<div class="variant-section">
<p class="variant-label">Size: <span id="selected-size">β</span> <a href="#" style="font-size:12px; color:var(--accent); font-weight:400">Size guide</a></p>
<div class="size-grid">
<div class="size-option" onclick="selectSize(this, 'XS')">XS</div>
<div class="size-option" onclick="selectSize(this, 'S')">S</div>
<div class="size-option" onclick="selectSize(this, 'M')">M</div>
<div class="size-option" onclick="selectSize(this, 'L')">L</div>
<div class="size-option" onclick="selectSize(this, 'XL')">XL</div>
<div class="size-option sold-out" title="Sold out">XXL</div>
</div>
</div>
<!-- Qty + ATC -->
<div class="qty-row">
<div class="qty-picker">
<button onclick="changeQty(-1)">β</button>
<span id="qty-val">1</span>
<button onclick="changeQty(1)">+</button>
</div>
<button class="add-to-cart-btn" onclick="addToCartFromPage()">Add to Cart</button>
</div>
<button class="buy-now-btn" onclick="addToCartFromPage(); showToast('Redirecting to checkout...')">Buy It Now</button>
<!-- Product meta -->
<div class="product-meta-row">
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
Free shipping over $75
</span>
<span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="23 4 23 10 17 10"/><polyline points="1 20 1 14 7 14"/><path d="M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"/></svg>
Free 30-day returns
</span>
<span>
<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"/></svg>
Lifetime guarantee
</span>
</div>
<!-- Details accordion -->
<div style="margin-top: 28px; border-top: 1px solid var(--gray-200);">
<details style="border-bottom: 1px solid var(--gray-200);">
<summary style="padding: 16px 0; font-size:14px; font-weight:600; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center;">
Product Details
<span>+</span>
</summary>
<div style="padding: 0 0 16px; font-size:14px; color:var(--gray-600); line-height:1.7;">
<ul style="list-style:disc; padding-left:20px; display:flex; flex-direction:column; gap:6px;">
<li>100% GOTS-certified organic cotton</li>
<li>180gsm medium weight jersey</li>
<li>Crew neck with reinforced stitching</li>
<li>Pre-washed for minimal shrink</li>
<li>Regular fit β true to size</li>
<li>Model is 6'0" wearing size L</li>
</ul>
</div>
</details>
<details style="border-bottom: 1px solid var(--gray-200);">
<summary style="padding: 16px 0; font-size:14px; font-weight:600; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center;">
Care Instructions
<span>+</span>
</summary>
<div style="padding: 0 0 16px; font-size:14px; color:var(--gray-600); line-height:1.7;">
Machine wash cold on gentle cycle. Tumble dry low. Do not bleach. Iron on low if needed.
</div>
</details>
<details>
<summary style="padding: 16px 0; font-size:14px; font-weight:600; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center;">
Shipping & Returns
<span>+</span>
</summary>
<div style="padding: 0 0 16px; font-size:14px; color:var(--gray-600); line-height:1.7;">
Standard shipping (3β5 days): Free over $75, otherwise $5.99.<br/>
Express shipping (1β2 days): $12.99.<br/>
Free returns within 30 days. Items must be unworn and unwashed.
</div>
</details>
</div>
</div>
</div>
<!-- You May Also Like -->
<section class="section" style="padding-top: 0;">
<div class="section-header">
<div>
<h2 class="section-title">You May Also Like</h2>
</div>
<a href="collection.html" class="view-all">View all β</a>
</div>
<div class="product-grid">
<div class="product-card" onclick="location.href='product.html?id=2'">
<div class="product-card-img-wrap">
<div class="product-placeholder">π§₯</div>
<span class="badge badge-new">New</span>
<div class="product-quick-add"><button class="quick-add-btn" onclick="event.stopPropagation(); quickAdd('2','Oxford Button-Down',68,'π§₯')">Quick Add</button></div>
</div>
<div class="product-card-info">
<p class="product-vendor">Premium</p>
<h3 class="product-title">Oxford Button-Down</h3>
<div class="product-price"><span class="price">$68.00</span></div>
</div>
</div>
<div class="product-card" onclick="location.href='product.html?id=5'">
<div class="product-card-img-wrap">
<div class="product-placeholder">πΏ</div>
<div class="product-quick-add"><button class="quick-add-btn" onclick="event.stopPropagation(); quickAdd('5','Organic Henley',52,'πΏ')">Quick Add</button></div>
</div>
<div class="product-card-info">
<p class="product-vendor">Organic</p>
<h3 class="product-title">Organic Henley</h3>
<div class="product-price"><span class="price">$52.00</span></div>
</div>
</div>
<div class="product-card" onclick="location.href='product.html?id=4'">
<div class="product-card-img-wrap">
<div class="product-placeholder">π½</div>
<span class="badge badge-sale">β30%</span>
<div class="product-quick-add"><button class="quick-add-btn" onclick="event.stopPropagation(); quickAdd('4','Vintage Washed Tee',29,'π½')">Quick Add</button></div>
</div>
<div class="product-card-info">
<p class="product-vendor">Essentials</p>
<h3 class="product-title">Vintage Washed Tee</h3>
<div class="product-price"><span class="price price-sale">$29.00</span><span class="price-compare">$42.00</span></div>
</div>
</div>
<div class="product-card" onclick="location.href='product.html?id=9'">
<div class="product-card-img-wrap">
<div class="product-placeholder">π</div>
<div class="product-quick-add"><button class="quick-add-btn" onclick="event.stopPropagation(); quickAdd('9','Striped Crew Tee',44,'π')">Quick Add</button></div>
</div>
<div class="product-card-info">
<p class="product-vendor">Essentials</p>
<h3 class="product-title">Striped Crew Tee</h3>
<div class="product-price"><span class="price">$44.00</span></div>
</div>
</div>
</div>
</section>
<!-- Reviews Section -->
<section id="reviews" class="section testimonials-section" style="padding-top: 0;">
<div class="section-header">
<div>
<h2 class="section-title">Customer Reviews</h2>
<p class="section-sub">4.9 out of 5 β based on 284 reviews</p>
</div>
<button class="btn btn-outline" onclick="showToast('Review form coming soon!')">Write a Review</button>
</div>
<div class="testimonials-grid">
<div class="testimonial-card">
<div class="t-stars">β
β
β
β
β
</div>
<p class="t-text">"I've bought three of these now. The fabric is incredible β soft but not flimsy. Holds up perfectly after dozens of washes. This is the only white tee I'll ever buy again."</p>
<div class="t-author">
<div class="t-avatar">π§</div>
<div><div class="t-name">Marcus T.</div><div class="t-meta">Verified buyer Β· Size L</div></div>
</div>
</div>
<div class="testimonial-card">
<div class="t-stars">β
β
β
β
β
</div>
<p class="t-text">"Perfect fit, perfect weight. I ordered M and it fits exactly as described. The organic cotton feels noticeably nicer than regular cotton tees."</p>
<div class="t-author">
<div class="t-avatar">π©</div>
<div><div class="t-name">Anna K.</div><div class="t-meta">Verified buyer Β· Size S</div></div>
</div>
</div>
<div class="testimonial-card">
<div class="t-stars">β
β
β
β
β
</div>
<p class="t-text">"Ordered for the whole family. Everyone loves them. The sizing guide is accurate and shipping was really fast. Will definitely reorder."</p>
<div class="t-author">
<div class="t-avatar">π§</div>
<div><div class="t-name">Jake M.</div><div class="t-meta">Verified buyer Β· Size XL</div></div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="site-footer">
<div class="footer-grid">
<div class="footer-brand">
<a href="index.html" class="logo">Thread<span>Co</span></a>
<p>Premium shirts for everyday life. Made with organic cotton, designed with care, built to last.</p>
<div class="social-links">
<a href="#" class="social-link">π·</a>
<a href="#" class="social-link">π¦</a>
<a href="#" class="social-link">π΅</a>
</div>
</div>
<div class="footer-col">
<h4>Shop</h4>
<ul>
<li><a href="collection.html">All Products</a></li>
<li><a href="collection.html?cat=essentials">Essentials</a></li>
<li><a href="#">Graphic Tees</a></li>
<li><a href="#">Premium</a></li>
</ul>
</div>
<div class="footer-col">
<h4>Help</h4>
<ul>
<li><a href="#">Sizing Guide</a></li>
<li><a href="#">Shipping Info</a></li>
<li><a href="#">Returns</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
<div class="footer-col">
<h4>Company</h4>
<ul>
<li><a href="#">About Us</a></li>
<li><a href="#">Sustainability</a></li>
<li><a href="#">Privacy Policy</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<span>Β© 2025 ThreadCo. All rights reserved.</span>
<div class="payment-icons">
<span class="payment-icon">VISA</span>
<span class="payment-icon">MC</span>
<span class="payment-icon">AMEX</span>
<span class="payment-icon">PayPal</span>
</div>
</div>
</footer>
<script src="js/store.js"></script>
<script>!(function(){const sc=document.createElement('script');sc.src="https://app.solvea.cx/api_v2/gpt/bots/livechat/embed.js?pid=738&token=15ae229dfefb4e0b8abe3a9dfba98fce";sc.async=true;sc.defer=true;document.body.appendChild(sc);})();</script>
<script>
// Products data (for dynamic loading based on URL param)
const PRODUCTS = {
'1': { title: 'Classic White Tee', price: 34, emoji: 'π', vendor: 'ThreadCo Essentials' },
'2': { title: 'Oxford Button-Down', price: 68, emoji: 'π§₯', vendor: 'ThreadCo Premium' },
'3': { title: 'Linen Overshirt', price: 89, emoji: 'π', vendor: 'ThreadCo Premium' },
'4': { title: 'Vintage Washed Tee', price: 29, emoji: 'π½', vendor: 'ThreadCo Essentials' },
'5': { title: 'Organic Henley', price: 52, emoji: 'πΏ', vendor: 'ThreadCo Organic' },
'6': { title: 'Band-Style Graphic Tee', price: 38, emoji: 'πΈ', vendor: 'ThreadCo Graphic' },
'7': { title: 'Resort Camp Shirt', price: 72, emoji: 'ποΈ', vendor: 'ThreadCo Premium' },
'8': { title: 'Merino Wool Polo', price: 95, emoji: 'π€', vendor: 'ThreadCo Premium' },
'9': { title: 'Striped Crew Tee', price: 44, emoji: 'π', vendor: 'ThreadCo Essentials' },
};
// Load product from URL param
const params = new URLSearchParams(window.location.search);
const pid = params.get('id') || '1';
const p = PRODUCTS[pid] || PRODUCTS['1'];
document.querySelector('#product-name').textContent = p.title;
document.querySelector('#product-price').textContent = `$${p.price}.00`;
document.querySelector('.product-info-vendor').textContent = p.vendor;
document.title = `${p.title} β ThreadCo`;
// Set real images
const imgs = PRODUCT_IMAGES[pid] || [];
if (imgs[0]) {
const mainImg = document.querySelector('#main-img');
mainImg.innerHTML = `<img src="${imgs[0]}" alt="${p.title}" style="width:100%;height:100%;object-fit:cover;">`;
const thumbs = document.querySelectorAll('.product-thumb');
imgs.forEach((src, i) => {
if (thumbs[i]) thumbs[i].innerHTML = `<img src="${src}" alt="${p.title} view ${i+1}" style="width:100%;height:100%;object-fit:cover;">`;
});
}
let selectedSize = '';
let selectedColor = 'White';
let qty = 1;
function selectSize(el, size) {
document.querySelectorAll('.size-option').forEach(s => s.classList.remove('selected'));
el.classList.add('selected');
selectedSize = size;
document.getElementById('selected-size').textContent = size;
}
function selectColor(el, color) {
document.querySelectorAll('.color-option').forEach(c => c.classList.remove('selected'));
el.classList.add('selected');
selectedColor = color;
document.getElementById('selected-color').textContent = color;
}
function changeQty(delta) {
qty = Math.max(1, qty + delta);
document.getElementById('qty-val').textContent = qty;
}
function selectThumb(el, emoji) {
document.querySelectorAll('.product-thumb').forEach(t => t.classList.remove('active'));
el.classList.add('active');
const src = el.querySelector('img')?.src;
const mainImg = document.getElementById('main-img');
if (src) mainImg.innerHTML = `<img src="${src}" alt="${p.title}" style="width:100%;height:100%;object-fit:cover;">`;
else mainImg.textContent = emoji;
}
function addToCartFromPage() {
if (!selectedSize) {
showToast('Please select a size');
return;
}
cart.add({
id: pid,
title: p.title,
price: p.price,
emoji: p.emoji,
size: selectedSize,
color: selectedColor,
qty: qty
});
}
</script>
</body>
</html>