Spaces:
Sleeping
Sleeping
Create templates/
Browse files
templates
ADDED
|
@@ -0,0 +1,280 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>Tarz Price Scout</title>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 7 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
| 10 |
+
<style>
|
| 11 |
+
:root {
|
| 12 |
+
--bg-main: #0a0c14; --card-bg: #131622; --input-bg: #1b1f32; --border-color: rgba(255, 255, 255, 0.08);
|
| 13 |
+
--text-main: #f3f4f6; --text-muted: #9ca3af; --accent-blue: #3b82f6; --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
|
| 14 |
+
--accent-green: #10b981; --glow-green: rgba(16, 185, 129, 0.2); --accent-gold: #f59e0b;
|
| 15 |
+
}
|
| 16 |
+
* { box-sizing: border-box; }
|
| 17 |
+
body {
|
| 18 |
+
font-family: 'Inter', -apple-system, sans-serif;
|
| 19 |
+
padding: 40px 20px;
|
| 20 |
+
background: radial-gradient(circle at 50% 0%, #16192b 0%, #08090f 100%);
|
| 21 |
+
background-attachment: fixed;
|
| 22 |
+
color: var(--text-main);
|
| 23 |
+
max-width: 850px;
|
| 24 |
+
margin: auto;
|
| 25 |
+
line-height: 1.5;
|
| 26 |
+
-webkit-text-size-adjust: 100%;
|
| 27 |
+
}
|
| 28 |
+
h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 4px; color: #ffffff; display: flex; align-items: center; gap: 12px; }
|
| 29 |
+
h3 { font-size: 18px; font-weight: 600; color: #ffffff; margin-top: 0; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
|
| 30 |
+
.status-line { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 30px; background: rgba(255,255,255,0.02); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-color); }
|
| 31 |
+
.status-pill { width: 8px; height: 8px; background: {{ status_color }}; border-radius: 50%; box-shadow: 0 0 12px {{ status_color }}; }
|
| 32 |
+
.card { background: var(--card-bg); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); margin-bottom: 24px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
|
| 33 |
+
.input-flex { display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-end; }
|
| 34 |
+
.input-group { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
|
| 35 |
+
.input-group.size-group { flex-grow: 0; width: 140px; }
|
| 36 |
+
.input-group.gender-group { flex-grow: 0; width: 105px; }
|
| 37 |
+
.input-group.mode-group { flex-grow: 0; width: 175px; }
|
| 38 |
+
label { min-height: 32px; display: flex; align-items: flex-end; margin-bottom: 8px; font-weight: 500; color: var(--text-muted); font-size: 13px; line-height: 1.2; }
|
| 39 |
+
input[type="text"], select { background: var(--input-bg); border: 1px solid var(--border-color); color: white; padding: 14px 16px; border-radius: 10px; font-size: 15px; transition: all 0.3s ease; font-family: inherit; width: 100%; height: 50px; }
|
| 40 |
+
.input-group.gender-group select { padding: 14px 22px 14px 12px; font-size: 14px; background-position: right 6px center; }
|
| 41 |
+
select { cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
|
| 42 |
+
input[type="text"]:focus, select:focus { border-color: var(--accent-blue); outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
|
| 43 |
+
button { background: var(--accent-gradient); color: white; border: none; padding: 14px 24px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 15px; transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); font-family: inherit; }
|
| 44 |
+
button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3); }
|
| 45 |
+
ul { list-style-type: none; padding: 0; margin: 0; }
|
| 46 |
+
li { background: rgba(255, 255, 255, 0.02); padding: 14px 18px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 12px; transition: all 0.2s ease; }
|
| 47 |
+
li:hover { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); }
|
| 48 |
+
.deal-item-header { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
|
| 49 |
+
.deal-item { border-left: 4px solid var(--accent-green); background: #161c2a; overflow: hidden; }
|
| 50 |
+
.product-img { width: 52px; height: 52px; min-width: 52px; border-radius: 6px; object-fit: contain; aspect-ratio: 1 / 1; background: #0f111a; border: 1px solid var(--border-color); padding: 2px; }
|
| 51 |
+
.deal-info { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
|
| 52 |
+
.item-title { font-weight: 600; color: #ffffff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
| 53 |
+
.meta-container { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; margin-top: 2px; }
|
| 54 |
+
.domain-badge { background: rgba(255, 255, 255, 0.05); color: #e5e7eb; font-size: 11px; font-weight: 500; padding: 2px 6px; border-radius: 4px; text-transform: lowercase; border: 1px solid var(--border-color); white-space: nowrap; }
|
| 55 |
+
.size-badge { background: rgba(59, 130, 246, 0.1); color: #60a5fa; font-size: 11px; font-weight: 500; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(59, 130, 246, 0.15); white-space: nowrap; }
|
| 56 |
+
.rating-badge { background: rgba(245, 158, 11, 0.1); color: #fbbf24; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(245, 158, 11, 0.2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
|
| 57 |
+
.value-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
|
| 58 |
+
.value-badge.best-value { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); box-shadow: 0 0 8px rgba(16, 185, 129, 0.1); }
|
| 59 |
+
.value-badge.verified-retailer { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
|
| 60 |
+
.small-link { color: var(--text-muted); text-decoration: none; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
|
| 61 |
+
.small-link:hover { text-decoration: underline; color: #60a5fa; }
|
| 62 |
+
|
| 63 |
+
.price-tag { background: var(--accent-green); color: white; border-radius: 8px; font-weight: 700; font-size: 16px; text-align: center; white-space: nowrap; min-width: 80px; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15); padding: 0; transition: transform 0.2s ease; }
|
| 64 |
+
.price-tag:hover { transform: scale(1.03); background: #059669; }
|
| 65 |
+
.price-tag a { display: block; color: white; text-decoration: none; padding: 8px 14px; width: 100%; height: 100%; }
|
| 66 |
+
|
| 67 |
+
.trend-indicator { font-size: 11px; font-weight: 700; font-family: monospace; margin-top: 4px; text-align: right; white-space: nowrap; }
|
| 68 |
+
.trend-indicator.down { color: #ef4444; }
|
| 69 |
+
.trend-indicator.up { color: #10b981; }
|
| 70 |
+
|
| 71 |
+
.error { color: #ef4444; background: rgba(239, 68, 68, 0.08); padding: 14px; border-radius: 10px; margin-bottom: 20px; border: 1px solid rgba(239, 68, 68, 0.2); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
|
| 72 |
+
.inline-coupon { background: rgba(245, 158, 11, 0.05); border: 1px dashed rgba(245, 158, 11, 0.3); padding: 8px 12px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; width: 100%; margin-top: 4px; }
|
| 73 |
+
details summary::-webkit-details-marker { display: none; }
|
| 74 |
+
details summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #ffffff; cursor: pointer; transition: all 0.2s ease; margin-top: 15px; }
|
| 75 |
+
details summary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
|
| 76 |
+
.loader-box { display: none; margin-top: 20px; }
|
| 77 |
+
.skeleton { background: linear-gradient(90deg, #1b1f32 25%, #252b47 50%, #1b1f32 75%); background-size: 200% 100%; animation: loading-shimmer 1.4s infinite linear; border-radius: 8px; }
|
| 78 |
+
@keyframes loading-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
|
| 79 |
+
svg.icon { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
|
| 80 |
+
@media (max-width: 700px) {
|
| 81 |
+
body { padding: 20px 12px; }
|
| 82 |
+
h2 { font-size: 22px; }
|
| 83 |
+
.card { padding: 16px; border-radius: 12px; margin-bottom: 16px; }
|
| 84 |
+
.input-flex { flex-direction: column; gap: 12px; margin-bottom: 16px; align-items: stretch; }
|
| 85 |
+
.input-group.size-group, .input-group.gender-group, .input-group.mode-group { width: 100%; }
|
| 86 |
+
label { min-height: auto; }
|
| 87 |
+
.deal-item-header { flex-direction: column; align-items: flex-start; gap: 12px; }
|
| 88 |
+
.product-img { width: 48px; height: 48px; min-width: 48px; }
|
| 89 |
+
.deal-info { width: 100%; }
|
| 90 |
+
.item-title { white-space: normal; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
|
| 91 |
+
.small-link { max-width: 100%; display: block; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
|
| 92 |
+
.price-tag { width: 100%; text-align: center; }
|
| 93 |
+
button { padding: 12px 16px; font-size: 14px; }
|
| 94 |
+
}
|
| 95 |
+
</style>
|
| 96 |
+
<script>
|
| 97 |
+
function triggerLoadingState() {
|
| 98 |
+
document.getElementById("submit-btn").style.display = "none";
|
| 99 |
+
document.getElementById("loader-zone").style.display = "block";
|
| 100 |
+
}
|
| 101 |
+
</script>
|
| 102 |
+
</head>
|
| 103 |
+
<body>
|
| 104 |
+
<h2>
|
| 105 |
+
<svg class="icon" style="width:28px; height:28px; color:var(--accent-blue);" viewBox="0 0 24 24"><path d="M12 2L2 22h20L12 2zm0 3.99L19.53 19H4.47L12 5.99zM13 16h-2v2h2v-2zm0-6h-2v4h2v-4z"/></svg>
|
| 106 |
+
Tarz Price Scout
|
| 107 |
+
</h2>
|
| 108 |
+
<div class="status-line">
|
| 109 |
+
<div class="status-pill"></div>
|
| 110 |
+
<span>{{ status_text }}</span>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
{% if error_msg %}
|
| 114 |
+
<div class="error">{{ error_msg }}</div>
|
| 115 |
+
{% endif %}
|
| 116 |
+
|
| 117 |
+
<div class="card">
|
| 118 |
+
<h3>
|
| 119 |
+
<svg class="icon" style="color:var(--accent-blue);" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>
|
| 120 |
+
Run On-Demand Scan
|
| 121 |
+
</h3>
|
| 122 |
+
<p style="font-size: 12px; color: var(--text-muted); margin-top: -10px; margin-bottom: 15px;">💡 Append an asterisk to force an engine refresh (e.g. <i>nike shorts *</i>)</p>
|
| 123 |
+
<form action="/search" method="post" onsubmit="triggerLoadingState()">
|
| 124 |
+
<div class="input-flex">
|
| 125 |
+
<div class="input-group">
|
| 126 |
+
<label>Enter Product Details OR Paste Product Link</label>
|
| 127 |
+
<input type="text" name="product_name" value="{{ prev_name }}" placeholder="e.g., Creed Green Irish Tweed OR https://www.store.com/item" autocomplete="off" required>
|
| 128 |
+
</div>
|
| 129 |
+
<div class="input-group size-group">
|
| 130 |
+
<label>Size / Variant</label>
|
| 131 |
+
<input type="text" name="product_size" value="{{ prev_size }}" placeholder="e.g., 3.4 oz, XL, 10.5" autocomplete="off">
|
| 132 |
+
</div>
|
| 133 |
+
<div class="input-group gender-group">
|
| 134 |
+
<label>Gender</label>
|
| 135 |
+
<select name="product_gender">
|
| 136 |
+
<option value="unisex" {% if prev_gender == "unisex" %}selected{% endif %}>All</option>
|
| 137 |
+
<option value="mens" {% if prev_gender == "mens" %}selected{% endif %}>Men's</option>
|
| 138 |
+
<option value="womens" {% if prev_gender == "womens" %}selected{% endif %}>Women's</option>
|
| 139 |
+
<option value="kids" {% if prev_gender == "kids" %}selected{% endif %}>Kids'</option>
|
| 140 |
+
</select>
|
| 141 |
+
</div>
|
| 142 |
+
<div class="input-group mode-group">
|
| 143 |
+
<label>Search Strategy</label>
|
| 144 |
+
<select name="search_mode">
|
| 145 |
+
<option value="broad" {% if prev_mode == "broad" %}selected{% endif %}>Broad Exploration</option>
|
| 146 |
+
<option value="balanced" {% if prev_mode == "balanced" %}selected{% endif %}>Standard Balanced</option>
|
| 147 |
+
<option value="exact" {% if prev_mode == "exact" %}selected{% endif %}>Precision Match</option>
|
| 148 |
+
</select>
|
| 149 |
+
</div>
|
| 150 |
+
</div>
|
| 151 |
+
<button type="submit" id="submit-btn">
|
| 152 |
+
<svg class="icon" viewBox="0 0 24 24"><path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/></svg>
|
| 153 |
+
Execute Price Scout Sweep
|
| 154 |
+
</button>
|
| 155 |
+
<div id="loader-zone" class="loader-box">
|
| 156 |
+
<p style="color: var(--text-muted); font-size: 14px; margin-bottom: 15px; text-align: center;">⚡ Price Scout is assembling structural pricing matrices across real-time storage nodes...</p>
|
| 157 |
+
<div style="height: 64px; width: 100%; margin-bottom: 12px;" class="skeleton"></div>
|
| 158 |
+
<div style="height: 64px; width: 100%; margin-bottom: 12px;" class="skeleton"></div>
|
| 159 |
+
<div style="height: 64px; width: 100%;" class="skeleton"></div>
|
| 160 |
+
</div>
|
| 161 |
+
</form>
|
| 162 |
+
</div>
|
| 163 |
+
|
| 164 |
+
{% if show_results %}
|
| 165 |
+
<div class="card" style="border-color: var(--accent-green);">
|
| 166 |
+
<h3>Results Matrix for: <span style="color: var(--accent-blue); margin-left: 4px;"><b>{{ target_item }}{{ size_header }}</b></span></h3>
|
| 167 |
+
|
| 168 |
+
{% if deals %}
|
| 169 |
+
<p style="color:var(--accent-green); font-weight:600; margin-top:-10px; font-size:15px; margin-bottom: 20px;">🏆 Lowest verified online price: ${{ "%.2f"|format(deals[0].price) }}</p>
|
| 170 |
+
|
| 171 |
+
<ul style="margin-top: 15px;">
|
| 172 |
+
{% for deal in deals[:10] %}
|
| 173 |
+
<li class="deal-item">
|
| 174 |
+
<div class="deal-item-header">
|
| 175 |
+
<img src="{{ deal.image if deal.image else 'https://placehold.co/100x100/1a1c28/9fa4b4?text=IMG' }}" class="product-img" onerror="this.src='https://placehold.co/100x100/1a1c28/9fa4b4?text=IMG'" />
|
| 176 |
+
<div class="deal-info">
|
| 177 |
+
<span class="item-title">{{ deal.title if deal.title else target_item }}</span>
|
| 178 |
+
<div class="meta-container">
|
| 179 |
+
<span class="domain-badge">{{ deal.source_domain }}</span>
|
| 180 |
+
<span class="size-badge">{{ deal.size if deal.size else 'Standard' }}</span>
|
| 181 |
+
|
| 182 |
+
{% if deal.rating %}
|
| 183 |
+
<span class="rating-badge">
|
| 184 |
+
<svg class="icon" style="width:11px; height:11px; color:var(--accent-gold); fill:currentColor;" viewBox="0 0 24 24"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>
|
| 185 |
+
{{ deal.rating }}{% if deal.reviews %} ({{ deal.reviews|int }}){% endif %}
|
| 186 |
+
</span>
|
| 187 |
+
{% endif %}
|
| 188 |
+
|
| 189 |
+
{% if loop.index0 == 0 %}
|
| 190 |
+
<span class="value-badge best-value">
|
| 191 |
+
<svg class="icon" style="width:12px; height:12px;" viewBox="0 0 24 24"><path d="M12 23l-1.45-1.32C5.4 16.25 2 13.17 2 9.5 2 6.5 4.5 4 7.5 4c1.74 0 3.41.81 4.5 2.09C13.09 4.81 14.76 4 16.5 4 19.5 4 22 6.5 22 9.5c0 3.67-3.4 6.75-8.55 12.18L12 23z"/></svg>
|
| 192 |
+
Best Value
|
| 193 |
+
</span>
|
| 194 |
+
{% endif %}
|
| 195 |
+
|
| 196 |
+
{% if deal.source %}
|
| 197 |
+
<span class="value-badge verified-retailer">
|
| 198 |
+
<svg class="icon" style="width:12px; height:12px;" viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>
|
| 199 |
+
Verified
|
| 200 |
+
</span>
|
| 201 |
+
{% endif %}
|
| 202 |
+
|
| 203 |
+
<a href="{{ deal.url }}" target="_blank" class="small-link">{{ deal.url }}</a>
|
| 204 |
+
|
| 205 |
+
{% if is_ref_url and deal.url == is_ref_url %}
|
| 206 |
+
<span class="size-badge" style="background:rgba(59,130,246,0.1); color:#60a5fa; border-color:rgba(59,130,246,0.2)">⭐ Ref Target</span>
|
| 207 |
+
{% endif %}
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
| 211 |
+
<span class="price-tag">
|
| 212 |
+
<a href="{{ deal.url }}" target="_blank">${{ "%.2f"|format(deal.price) }}</a>
|
| 213 |
+
</span>
|
| 214 |
+
{% if loop.index0 == 0 and deal.price_delta and deal.price_delta != 0.0 %}
|
| 215 |
+
{% if deal.price_delta < 0 %}
|
| 216 |
+
<span class="trend-indicator down">- $ {{ deal.price_delta|abs }}</span>
|
| 217 |
+
{% else %}
|
| 218 |
+
<span class="trend-indicator up">+ $ {{ deal.price_delta }}</span>
|
| 219 |
+
{% endif %}
|
| 220 |
+
{% endif %}
|
| 221 |
+
</div>
|
| 222 |
+
</div>
|
| 223 |
+
|
| 224 |
+
{% for coupon in coupons %}
|
| 225 |
+
{% if coupon.source and (coupon.source|lower in deal.source_domain|lower or coupon.source|lower in (deal.source or '')|lower) %}
|
| 226 |
+
<div class="inline-coupon">
|
| 227 |
+
<div style="min-width: 0;">
|
| 228 |
+
<span style="color: var(--accent-gold); font-weight: 700; font-family: monospace; font-size: 11px; background: rgba(245, 158, 11, 0.1); padding: 2px 6px; border-radius: 4px; border: 1px dashed rgba(245, 158, 11, 0.3); text-transform: uppercase;">{{ coupon.code }}</span>
|
| 229 |
+
<span style="color: #e5e7eb; margin-left: 6px; font-size: 12px;">{{ coupon.description }}</span>
|
| 230 |
+
</div>
|
| 231 |
+
</div>
|
| 232 |
+
{% endif %}
|
| 233 |
+
{% endfor %}
|
| 234 |
+
</li>
|
| 235 |
+
{% endfor %}
|
| 236 |
+
</ul>
|
| 237 |
+
|
| 238 |
+
{% if deals|length > 10 %}
|
| 239 |
+
<details>
|
| 240 |
+
<summary>
|
| 241 |
+
<svg class="icon" viewBox="0 0 24 24" style="width:14px; height:14px;"><path d="M7 10l5 5 5-5z"/></svg>
|
| 242 |
+
View Additional Pricing Options (+{{ deals|length - 10 }} more variants found)
|
| 243 |
+
</summary>
|
| 244 |
+
<ul style="margin-top: 15px;">
|
| 245 |
+
{% for deal in deals[10:20] %}
|
| 246 |
+
<li class="deal-item">
|
| 247 |
+
<div class="deal-item-header">
|
| 248 |
+
<img src="{{ deal.image if deal.image else 'https://placehold.co/100x100/1a1c28/9fa4b4?text=IMG' }}" class="product-img" onerror="this.src='https://placehold.co/100x100/1a1c28/9fa4b4?text=IMG'" />
|
| 249 |
+
<div class="deal-info">
|
| 250 |
+
<span class="item-title">{{ deal.title if deal.title else target_item }}</span>
|
| 251 |
+
<div class="meta-container">
|
| 252 |
+
<span class="domain-badge">{{ deal.source_domain }}</span>
|
| 253 |
+
<span class="size-badge">{{ deal.size if deal.size else 'Standard' }}</span>
|
| 254 |
+
{% if deal.rating %}
|
| 255 |
+
<span class="rating-badge">
|
| 256 |
+
{{ deal.rating }}
|
| 257 |
+
</span>
|
| 258 |
+
{% endif %}
|
| 259 |
+
<a href="{{ deal.url }}" target="_blank" class="small-link">{{ deal.url }}</a>
|
| 260 |
+
</div>
|
| 261 |
+
</div>
|
| 262 |
+
<div style="display: flex; flex-direction: column; align-items: flex-end;">
|
| 263 |
+
<span class="price-tag">
|
| 264 |
+
<a href="{{ deal.url }}" target="_blank">${{ "%.2f"|format(deal.price) }}</a>
|
| 265 |
+
</span>
|
| 266 |
+
</div>
|
| 267 |
+
</div>
|
| 268 |
+
</li>
|
| 269 |
+
{% endfor %}
|
| 270 |
+
</ul>
|
| 271 |
+
</details>
|
| 272 |
+
{% endif %}
|
| 273 |
+
|
| 274 |
+
{% else %}
|
| 275 |
+
<p style="color: var(--text-muted); margin: 0;">⚠️ No verifiable pricing matrices were found matching this selection criteria.</p>
|
| 276 |
+
{% endif %}
|
| 277 |
+
</div>
|
| 278 |
+
{% endif %}
|
| 279 |
+
</body>
|
| 280 |
+
</html>
|