summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhruv Dawar <dhruvdawar@Apples-MacBook-Air.local>2026-06-13 10:39:08 +0530
committerDhruv Dawar <dhruvdawar@Apples-MacBook-Air.local>2026-06-13 10:39:08 +0530
commitc2a5bf99523fbf93c7315b58ea4da0a790640009 (patch)
treee33cbc12ace42cd4a6503100c1371604e06032e7
initial commit: lock down duolingo brutalist core architecture
-rw-r--r--.DS_Storebin0 -> 6148 bytes
-rw-r--r--app.js71
-rw-r--r--catalog.json32
-rw-r--r--dashboard.py232
-rw-r--r--fonts/Ortland.otfbin0 -> 19036 bytes
-rw-r--r--index.html58
-rw-r--r--style.css303
7 files changed, 696 insertions, 0 deletions
diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..98a952e
--- /dev/null
+++ b/.DS_Store
Binary files differ
diff --git a/app.js b/app.js
new file mode 100644
index 0000000..3178f22
--- /dev/null
+++ b/app.js
@@ -0,0 +1,71 @@
+let stampsData = [];
+let activeFilter = 'all';
+let audioCtx = null;
+
+function initAudio() {
+ if (!audioCtx) audioCtx = new (window.AudioContext || window.webkitAudioContext)();
+}
+
+function playClickSound() {
+ initAudio(); if (!audioCtx) return;
+ const osc = audioCtx.createOscillator(); const gainNode = audioCtx.createGain();
+ osc.connect(gainNode); gainNode.connect(audioCtx.destination);
+ osc.type = 'triangle'; osc.frequency.setValueAtTime(120, audioCtx.currentTime);
+ osc.frequency.exponentialRampToValueAtTime(40, audioCtx.currentTime + 0.05);
+ gainNode.gain.setValueAtTime(0.15, audioCtx.currentTime); gainNode.gain.exponentialRampToValueAtTime(0.01, application_time => audioCtx.currentTime + 0.05);
+ osc.start(); osc.stop(audioCtx.currentTime + 0.05);
+}
+
+function playPopSound() {
+ initAudio(); if (!audioCtx) return;
+ const osc = audioCtx.createOscillator(); const gainNode = audioCtx.createGain();
+ osc.connect(gainNode); gainNode.connect(audioCtx.destination);
+ osc.type = 'sine'; osc.frequency.setValueAtTime(300, audioCtx.currentTime);
+ osc.frequency.exponentialRampToValueAtTime(600, audioCtx.currentTime + 0.12);
+ gainNode.gain.setValueAtTime(0.2, audioCtx.currentTime); gainNode.gain.exponentialRampToValueAtTime(0.01, audioCtx.currentTime + 0.12);
+ osc.start(); osc.stop(audioCtx.currentTime + 0.12);
+}
+
+async function initStore() {
+ try {
+ const res = await fetch('catalog.json');
+ stampsData = await res.json();
+ renderGrid(stampsData);
+ document.querySelectorAll('header button').forEach(btn => btn.addEventListener('mousedown', playClickSound));
+ } catch (err) { console.error("Asset tracking layout fault:", err); }
+}
+
+function setFilter(type) { activeFilter = type; filterCatalog(); }
+
+function filterCatalog() {
+ const query = document.getElementById('searchBar').value.toLowerCase();
+ const filtered = stampsData.filter(stamp => {
+ const matchesType = activeFilter === 'all' || stamp.type === activeFilter;
+ const matchesSearch = stamp.name.toLowerCase().includes(query) || stamp.scott.toLowerCase().includes(query) || stamp.description.toLowerCase().includes(query);
+ return matchesType && matchesSearch;
+ });
+ renderGrid(filtered);
+}
+
+function renderGrid(items) {
+ const grid = document.getElementById('stamp-grid'); grid.innerHTML = '';
+ if (items.length === 0) { grid.innerHTML = '<p class="no-results">No matching stamps found.</p>'; return; }
+
+ items.forEach(stamp => {
+ const el = document.createElement('div'); el.className = 'card';
+ el.innerHTML = `
+ <img src="${stamp.img}" alt="${stamp.name}" loading="lazy">
+ <div class="card-info">
+ <h3>${stamp.name}</h3>
+ <p class="meta">Scott #${stamp.scott} | ${stamp.condition}</p>
+ <p class="desc">${stamp.description}</p>
+ </div>
+ <div>
+ <span class="price">$${stamp.price.toFixed(2)}</span>
+ <button class="snipcart-add-item" data-item-id="${stamp.id}" data-item-name="${stamp.name}" data-item-price="${stamp.price}" data-item-url="/" data-item-image="${stamp.img}" ${stamp.type === 'individual' ? 'data-item-max-quantity="1"' : ''}>Add to Cart</button>
+ </div>`;
+ el.querySelector('.snipcart-add-item').addEventListener('mousedown', playPopSound);
+ grid.appendChild(el);
+ });
+}
+window.onload = initStore; \ No newline at end of file
diff --git a/catalog.json b/catalog.json
new file mode 100644
index 0000000..d972585
--- /dev/null
+++ b/catalog.json
@@ -0,0 +1,32 @@
+[
+ {
+ "id": "gem-1893-columbian",
+ "type": "individual",
+ "name": "1893 Columbian Exposition 2ยข",
+ "scott": "231",
+ "condition": "Mint OG NH",
+ "description": "Landing of Columbus variety. Superb centering, pristine gum sheet backing.",
+ "price": 35.00,
+ "img": "images/columbian.webp"
+ },
+ {
+ "id": "pack-space-50",
+ "type": "pack",
+ "name": "Global Space Exploration Pack",
+ "scott": "Multi",
+ "condition": "Used Mix",
+ "description": "50 unique worldwide stamps featuring rockets, Apollo missions, and astronauts.",
+ "price": 12.50,
+ "img": "images/space-pack.webp"
+ },
+ {
+ "id": "mystery-worldwide-1k",
+ "type": "random",
+ "name": "1000 Bulk Worldwide Mystery Bag",
+ "scott": "Assorted",
+ "condition": "Mixed Used & Mint",
+ "description": "Unsorted off-paper mixture. Guaranteed to contain stamps from at least 40 countries.",
+ "price": 19.95,
+ "img": "images/mystery-bag.webp"
+ }
+]
diff --git a/dashboard.py b/dashboard.py
new file mode 100644
index 0000000..5ad6e65
--- /dev/null
+++ b/dashboard.py
@@ -0,0 +1,232 @@
+import json
+import os
+import shutil
+import subprocess
+import tkinter as tk
+from tkinter import ttk, messagebox, filedialog
+
+CATALOG_FILE = 'catalog.json'
+IMAGES_DIR = 'images'
+
+# Verify the local directory layout boundaries are intact
+if not os.path.exists(IMAGES_DIR):
+ os.makedirs(IMAGES_DIR)
+
+def load_data():
+ if not os.path.exists(CATALOG_FILE):
+ return []
+ try:
+ with open(CATALOG_FILE, 'r', encoding='utf-8') as f:
+ return json.load(f)
+ except Exception as e:
+ messagebox.showerror("Error", f"Could not read json: {e}")
+ return []
+
+def save_data(data):
+ try:
+ with open(CATALOG_FILE, 'w', encoding='utf-8') as f:
+ json.dump(data, f, indent=2)
+ return True
+ except Exception as e:
+ messagebox.showerror("Error", f"Could not write json: {e}")
+ return False
+
+# --- Core GitHub Automation Engine ---
+def sync_to_github(commit_message):
+ try:
+ # Check if the folder is initialized as a Git repository
+ if not os.path.exists('.git'):
+ print("Workspace is not a Git repo yet. Skipping auto-push step.")
+ return False
+
+ # Execute standard Git terminal chain variables sequentially
+ subprocess.run(["git", "add", "."], check=True, capture_output=True, text=True)
+ subprocess.run(["git", "commit", "-m", commit_message], check=True, capture_output=True, text=True)
+
+ # Pull the current branch name safely (usually main or master)
+ branch_res = subprocess.run(["git", "branch", "--show-current"], check=True, capture_output=True, text=True)
+ current_branch = branch_res.stdout.strip() or "main"
+
+ # Fire background push straight up to your GitHub origin host
+ subprocess.run(["git", "push", "origin", current_branch], check=True, capture_output=True, text=True)
+ return True
+ except subprocess.CalledProcessError as e:
+ print(f"Git Sync Warning: {e.stderr}")
+ return False
+ except Exception as e:
+ print(f"System Error running Git: {e}")
+ return False
+
+class StampDashboardApp:
+ def __init__(self, root):
+ self.root = root
+ self.root.title("King of Stamps | Inventory Core")
+ self.root.geometry("1100x650")
+
+ self.stamps = load_data()
+ self.selected_image_path = ""
+
+ # --- Left Side Layout Form Fields ---
+ form_frame = tk.Frame(root, padx=15, pady=15, width=320)
+ form_frame.pack(side=tk.LEFT, fill=tk.Y)
+ form_frame.pack_propagate(False)
+
+ tk.Label(form_frame, text="ADD PRODUCT SOURCE", font=('Helvetica', 12, 'bold')).pack(anchor=tk.W, pady=5)
+
+ fields = [
+ ("ID (Unique SKU):", "id"),
+ ("Type (individual/pack/random):", "type"),
+ ("Stamp Name:", "name"),
+ ("Scott Catalog #:", "scott"),
+ ("Condition (Grade):", "condition"),
+ ("Description Narrative:", "description"),
+ ("Price ($):", "price")
+ ]
+
+ self.entries = {}
+ for label_text, key in fields:
+ tk.Label(form_frame, text=label_text, font=('Helvetica', 10)).pack(anchor=tk.W, pady=1)
+ entry = tk.Entry(form_frame, font=('Helvetica', 10))
+ entry.pack(fill=tk.X, pady=2)
+ self.entries[key] = entry
+
+ # --- Visual Image Selector Block ---
+ tk.Label(form_frame, text="Product Stamp Image:", font=('Helvetica', 10)).pack(anchor=tk.W, pady=4)
+
+ img_btn_frame = tk.Frame(form_frame)
+ img_btn_frame.pack(fill=tk.X, pady=2)
+
+ tk.Button(img_btn_frame, text="Choose Image...", command=self.select_image_file, font=('Helvetica', 9)).pack(side=tk.LEFT)
+ self.img_label = tk.Label(img_btn_frame, text="No image selected", font=('Helvetica', 9, 'italic'), fg="#888")
+ self.img_label.pack(side=tk.LEFT, padx=10)
+
+ tk.Button(form_frame, text="APPEND STAMP RECORD", bg="#ff3366", fg="white",
+ font=('Helvetica', 10, 'bold'), command=self.add_stamp, height=2).pack(fill=tk.X, pady=20)
+
+ # --- Right Side Ledger View Table ---
+ table_frame = tk.Frame(root, padx=15, pady=15)
+ table_frame.pack(side=tk.RIGHT, fill=tk.BOTH, expand=True)
+
+ tk.Label(table_frame, text="ACTIVE SHOP VIRTUAL LEDGER", font=('Helvetica', 12, 'bold')).pack(anchor=tk.W, pady=5)
+
+ columns = ("id", "type", "name", "scott", "price")
+ self.tree = ttk.Treeview(table_frame, columns=columns, show='headings')
+
+ self.tree.heading("id", text="ID / SKU")
+ self.tree.heading("type", text="Category")
+ self.tree.heading("name", text="Product Title")
+ self.tree.heading("scott", text="Scott #")
+ self.tree.heading("price", text="Price ($)")
+
+ self.tree.column("id", width=80, anchor=tk.CENTER)
+ self.tree.column("type", width=90, anchor=tk.CENTER)
+ self.tree.column("name", width=250, anchor=tk.W)
+ self.tree.column("scott", width=80, anchor=tk.CENTER)
+ self.tree.column("price", width=80, anchor=tk.E)
+
+ scrollbar = ttk.Scrollbar(table_frame, orient=tk.VERTICAL, command=self.tree.yview)
+ self.tree.configure(yscroll=scrollbar.set)
+ scrollbar.pack(side=tk.RIGHT, fill=tk.Y)
+ self.tree.pack(fill=tk.BOTH, expand=True, pady=5)
+
+ btn_tray = tk.Frame(table_frame)
+ btn_tray.pack(fill=tk.X, pady=5)
+
+ tk.Button(btn_tray, text="DELETE SELECTED STAMP", bg="#222222", fg="white",
+ font=('Helvetica', 10, 'bold'), command=self.delete_stamp, padding=6).pack(side=tk.RIGHT)
+
+ self.populate_tree()
+
+ def select_image_file(self):
+ file_path = filedialog.askopenfilename(
+ title="Select Stamp Photo",
+ filetypes=[("Image Files", "*.webp *.png *.jpg *.jpeg *.gif")]
+ )
+ if file_path:
+ self.selected_image_path = file_path
+ filename = os.path.basename(file_path)
+ self.img_label.config(text=filename, fg="#ff3366", font=('Helvetica', 9, 'bold'))
+
+ def add_stamp(self):
+ stamp_id = self.entries["id"].get().strip()
+
+ if not stamp_id or any(self.entries[k].get().strip() == "" for k in ["type", "name", "price"]):
+ messagebox.showwarning("Validation Error", "ID, Type, Name, and Price are absolute field requirements!")
+ return
+
+ if not self.selected_image_path:
+ messagebox.showwarning("Validation Error", "You must select a stamp photo asset file first!")
+ return
+
+ if any(s["id"] == stamp_id for s in self.stamps):
+ messagebox.showerror("Conflict Error", f"Product SKU ID '{stamp_id}' already exists!")
+ return
+
+ try:
+ price_float = float(self.entries["price"].get().strip())
+ except ValueError:
+ messagebox.showerror("Format Error", "Price must evaluate cleanly to a float number string!")
+ return
+
+ # Handle file copying mechanics locally
+ _, ext = os.path.splitext(self.selected_image_path)
+ dest_filename = f"{stamp_id}{ext}"
+ dest_path = os.path.join(IMAGES_DIR, dest_filename)
+
+ try:
+ shutil.copy2(self.selected_image_path, dest_path)
+ except Exception as e:
+ messagebox.showerror("File Error", f"Could not move image into project tree: {e}")
+ return
+
+ new_stamp = {
+ "id": stamp_id,
+ "type": self.entries["type"].get().strip(),
+ "name": self.entries["name"].get().strip(),
+ "scott": self.entries["scott"].get().strip(),
+ "condition": self.entries["condition"].get().strip(),
+ "description": self.entries["description"].get().strip(),
+ "price": price_float,
+ "img": f"images/{dest_filename}"
+ }
+
+ self.stamps.append(new_stamp)
+ if save_data(self.stamps):
+ self.populate_tree()
+
+ # Clear layout form fields
+ for entry in self.entries.values():
+ entry.delete(0, tk.END)
+ self.selected_image_path = ""
+ self.img_label.config(text="No image selected", fg="#888", font=('Helvetica', 9, 'italic'))
+
+ # Execute background git push routine instantly
+ pushed = sync_to_github(f"inventory: added stamp {stamp_id}")
+ if pushed:
+ messagebox.showinfo("Success", f"Stamp {stamp_id} appended locally and pushed live to GitHub Pages!")
+ else:
+ messagebox.showinfo("Saved Locally", f"Stamp {stamp_id} saved locally. Complete git setup to enable live auto-push.")
+
+ def delete_stamp(self):
+ selected_item = self.tree.selection()
+ if not selected_item:
+ messagebox.showwarning("Selection Error", "Please select a stamp record row from the list first!")
+ return
+
+ target_id = selected_item[0]
+ if messagebox.askyesno("Confirm Delete", f"Permanently remove SKU: {target_id}?"):
+ target_stamp = next((s for s in self.stamps if s["id"] == target_id), None)
+ if target_stamp and os.path.exists(target_stamp["img"]):
+ try:
+ os.remove(target_stamp["img"])
+ except Exception as e:
+ print(f"Warning: Image file could not be deleted: {e}")
+
+ self.stamps = [s for s in self.stamps if s["id"] != target_id]
+ if save_data(self.stamps):
+ self.populate_tree()
+
+ # Sync deletions live up to GitHub Pages
+ pushed = sync_to_github(f"inventory: removed stamp {target_id}")
+ if pushed:
+ messagebox.showinfo("Success", f"Stamp {target_id} removed locally and pushed live to GitHub Pages!") \ No newline at end of file
diff --git a/fonts/Ortland.otf b/fonts/Ortland.otf
new file mode 100644
index 0000000..04bd4b1
--- /dev/null
+++ b/fonts/Ortland.otf
Binary files differ
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..fda8ea0
--- /dev/null
+++ b/index.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>King of Stamps | Online Showcase</title>
+ <link rel="stylesheet" href="style.css">
+ <!-- Secondary clean body text typography from Bunny Fonts CDN -->
+ <link href="https://bunny.net" rel="stylesheet">
+ <link rel="preconnect" href="https://snipcart.com">
+ <link rel="preconnect" href="https://snipcart.com">
+ <link rel="stylesheet" href="https://snipcart.com/themes/v3.4.1/default/snipcart.css">
+</head>
+<body>
+
+ <header>
+ <!-- Top Left Aligned Brutalist Text Logo Module -->
+ <div class="logo-container">
+ <span class="logo-text">KING</span>
+ <span class="logo-subtext">OF STAMPS</span>
+ <div class="logo-badge">
+ <div class="badge-inner">
+ <span class="badge-core">1M</span>
+ <span class="badge-rim">MINT</span>
+ </div>
+ </div>
+ </div>
+
+ <!-- Interface Control Elements -->
+ <div class="controls">
+ <button onclick="setFilter('all')">All</button>
+ <button onclick="setFilter('individual')">Gems</button>
+ <button onclick="setFilter('pack')">Packs</button>
+ <button onclick="setFilter('random')">Mystery Bags</button>
+
+ <!-- Minimalist Icon-Only Expanding Search Box -->
+ <div class="search-box-wrapper">
+ <span class="search-emoji">๐Ÿ”</span>
+ <input type="text" id="searchBar" placeholder="SEARCH..." oninput="filterCatalog()">
+ </div>
+ </div>
+ </header>
+
+ <main id="stamp-grid"></main>
+
+ <!-- Snipcart Checkout Middleware Engine -->
+ <script async src="https://snipcart.com/themes/v3.4.1/default/snipcart.js"></script>
+ <script>
+ window.SnipcartSettings = {
+ publicApiKey: 'NmRmNDU0ZGEtYTE3Yy00MTYzLTgzNDctMjE3OGU3YmZjZThiNjM5MTY4ODE3ODk3Njg4ODU2',
+ loadStrategy: 'on-user-interaction',
+ };
+
+ (()=>{var c,d;(d=(c=window.SnipcartSettings).version)!=null||(c.version="3.0");var s,S;(S=(s=window.SnipcartSettings).timeoutDuration)!=null||(s.timeoutDuration=2750);var l,p;(p=(l=window.SnipcartSettings).domain)!=null||(l.domain="cdn.snipcart.com");var w,u;(u=(w=window.SnipcartSettings).protocol)!=null||(w.protocol="https");var f=window.SnipcartSettings.version.includes("v3.0.0-ci")||window.SnipcartSettings.version!="3.0"&&window.SnipcartSettings.version.localeCompare("3.4.0",void 0,{numeric:!0,sensitivity:"base"})===-1,m=["focus","mouseover","touchmove","scroll","keydown"];window.LoadSnipcart=o;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",r):r();function r(){window.SnipcartSettings.loadStrategy?window.SnipcartSettings.loadStrategy==="on-user-interaction"&&(m.forEach(t=>document.addEventListener(t,o)),setTimeout(o,window.SnipcartSettings.timeoutDuration)):o()}var a=!1;function o(){if(a)return;a=!0;let t=document.getElementsByTagName("head")[0],e=document.querySelector("#snipcart"),i=document.querySelector(`src[src^="${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}"][src$="snipcart.js"]`),n=document.querySelector(`link[href^="${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}"][href$="snipcart.css"]`);e||(e=document.createElement("div"),e.id="snipcart",e.setAttribute("hidden","true"),document.body.appendChild(e)),v(e),i||(i=document.createElement("script"),i.src=`${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}/themes/v${window.SnipcartSettings.version}/default/snipcart.js`,i.async=!0,t.appendChild(i)),n||(n=document.createElement("link"),n.rel="stylesheet",n.type="text/css",n.href=`${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}/themes/v${window.SnipcartSettings.version}/default/snipcart.css`,t.prepend(n)),m.forEach(g=>document.removeEventListener(g,o))}function v(t){!f||(t.dataset.apiKey=window.SnipcartSettings.publicApiKey,window.SnipcartSettings.addProductBehavior&&(t.dataset.configAddProductBehavior=window.SnipcartSettings.addProductBehavior),window.SnipcartSettings.modalStyle&&(t.dataset.configModalStyle=window.SnipcartSettings.modalStyle),window.SnipcartSettings.currency&&(t.dataset.currency=window.SnipcartSettings.currency),window.SnipcartSettings.templatesUrl&&(t.dataset.templatesUrl=window.SnipcartSettings.templatesUrl))}})();
+</script>
+ <script src="app.js"></script>
+</body>
+</html> \ No newline at end of file
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..2fe6bb8
--- /dev/null
+++ b/style.css
@@ -0,0 +1,303 @@
+/* --- 1. Custom Typography Import Engine (Ortland OTF mapping) --- */
+@font-face {
+ font-family: 'Ortland';
+ src: url('fonts/ortland.otf') format('opentype'); /* Configured specifically for your .otf binary asset */
+ font-weight: 900;
+ font-style: normal;
+ font-display: swap;
+}
+
+:root {
+ --bg-color: #000000; /* Pitch black canvas background */
+ --card-bg: #111111; /* Dark charcoal product frames */
+ --neon-white: #ffffff; /* Primary contrast white elements */
+ --stamp-border: #ff3366; /* Electric Pink signature theme accent */
+ --heavy-font: 'Ortland', 'Impact', sans-serif;
+ --body-font: 'Space Grotesk', sans-serif;
+}
+
+/* --- Base Layout Initialization --- */
+* {
+ box-sizing: border-box;
+}
+
+body {
+ font-family: var(--body-font);
+ margin: 0;
+ padding: 0 40px 40px 40px;
+ background-color: var(--bg-color);
+ color: var(--neon-white);
+ -webkit-font-smoothing: antialiased;
+ overflow-x: hidden; /* Lock viewport bounds entirely */
+}
+
+/* --- Bug-Free Responsive Header Layout --- */
+header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 30px 0;
+ margin-bottom: 50px;
+ border-bottom: 5px solid #222222; /* 3D linear separation divider line */
+ flex-wrap: nowrap;
+ gap: 20px;
+ width: 100%;
+ max-width: 1400px;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+/* --- Mega-Thick Brutalist Logo System --- */
+.logo-container {
+ display: flex;
+ flex-direction: column;
+ position: relative;
+ padding: 10px 40px 10px 0; /* Creates structural clearance for overlapping badge */
+ user-select: none;
+}
+
+.logo-text {
+ font-family: var(--heavy-font);
+ font-size: clamp(2.5rem, 5vw, 4.5rem);
+ font-weight: 900;
+ line-height: 0.8;
+ color: var(--stamp-border); /* Locked completely to Electric Pink */
+ letter-spacing: -1px;
+ text-transform: uppercase;
+}
+
+.logo-subtext {
+ font-family: var(--heavy-font);
+ font-size: clamp(1rem, 2vw, 1.8rem);
+ font-weight: 900;
+ line-height: 1;
+ color: var(--neon-white);
+ letter-spacing: 0.5px;
+ text-transform: uppercase;
+ margin-top: 4px;
+}
+
+/* Tactile Duolingo-Style Circular Postmark Badge */
+.logo-badge {
+ position: absolute;
+ top: -5px;
+ right: -25px;
+ width: 65px;
+ height: 65px;
+ background-color: var(--stamp-border);
+ border: 3px solid var(--neon-white);
+ border-bottom-width: 7px; /* 3D Base footprint shadow */
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ transform: rotate(12deg); /* Asymmetric playful pivot angle */
+ box-sizing: border-box;
+ transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
+}
+
+.logo-container:hover .logo-badge {
+ transform: scale(1.12) rotate(-5deg);
+ border-color: var(--stamp-border);
+ background-color: var(--neon-white);
+}
+
+.logo-container:hover .logo-badge .badge-core { color: var(--stamp-border); }
+.logo-container:hover .logo-badge .badge-rim { color: #000000; }
+
+.badge-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
+.badge-core { font-family: var(--heavy-font); font-size: 1.3rem; font-weight: 900; color: var(--neon-white); margin-bottom: -1px; }
+.badge-rim { font-family: var(--body-font); font-size: 0.6rem; font-weight: 700; color: #000000; }
+
+/* --- Control Interface Array --- */
+.controls {
+ display: flex;
+ gap: 14px;
+ align-items: center;
+ flex-wrap: nowrap;
+ justify-content: flex-end;
+ flex-shrink: 0;
+}
+
+header button {
+ position: relative;
+ padding: 12px 24px;
+ background: #111111;
+ color: var(--neon-white);
+ border: 3px solid var(--neon-white);
+ border-bottom: 7px solid var(--neon-white);
+ border-radius: 20px;
+ cursor: pointer;
+ font-family: var(--heavy-font);
+ font-size: 1.1rem;
+ text-transform: uppercase;
+ transition: transform 0.05s ease, border-bottom-width 0.05s ease, background-color 0.15s ease;
+ user-select: none;
+ white-space: nowrap;
+}
+header button:active { transform: translateY(4px); border-bottom-width: 3px; }
+header button:hover { background-color: var(--neon-white); color: var(--bg-color); }
+
+/* --- Fixed Expanding Search Wrapper Layout --- */
+.search-box-wrapper {
+ position: relative;
+ display: flex;
+ align-items: center;
+ background-color: #111111;
+ border: 3px solid var(--neon-white);
+ border-bottom: 7px solid var(--neon-white);
+ border-radius: 20px;
+ width: 65px;
+ height: 52px;
+ overflow: hidden;
+ flex-shrink: 0;
+ transition: width 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.15s;
+}
+
+/* Absorbs width changes smoothly within the flex layer line */
+.search-box-wrapper:hover,
+.search-box-wrapper:focus-within {
+ width: 240px;
+ border-color: var(--stamp-border);
+ border-bottom-color: var(--stamp-border);
+}
+
+.search-emoji {
+ font-size: 1.3rem;
+ padding-left: 16px;
+ user-select: none;
+ cursor: pointer;
+ flex-shrink: 0;
+}
+
+#searchBar {
+ width: 100%;
+ padding: 10px 16px 10px 10px;
+ background: transparent;
+ border: none;
+ font-family: var(--body-font);
+ font-weight: 700;
+ font-size: 1rem;
+ color: var(--neon-white);
+ text-transform: uppercase;
+}
+#searchBar:focus { outline: none; }
+
+/* --- Fluid Stamp Card Grid Framework --- */
+#stamp-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
+ gap: 35px;
+ max-width: 1400px;
+ margin: 0 auto;
+}
+
+.card {
+ background: var(--card-bg);
+ border: 3px solid #333333;
+ border-bottom: 9px solid #333333;
+ border-radius: 24px;
+ padding: 24px;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+ transition: border-color 0.2s ease, border-bottom-color 0.2s ease;
+}
+.card:hover { border-color: var(--neon-white); border-bottom-color: var(--neon-white); }
+
+.card img {
+ width: 100%;
+ height: 220px;
+ object-fit: contain;
+ background: #000000;
+ border: 3px dashed #444;
+ border-radius: 18px;
+ padding: 15px;
+ box-sizing: border-box;
+ transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
+}
+.card img:hover { transform: scale(1.18); cursor: zoom-in; z-index: 10; border-color: var(--stamp-border); }
+
+.card-info { margin: 20px 0 10px 0; }
+.card h3 { font-family: var(--heavy-font); font-size: 1.6rem; line-height: 1.1; margin: 0 0 8px 0; text-transform: uppercase; }
+.meta { font-family: var(--body-font); font-weight: 700; font-size: 0.85rem; color: var(--stamp-border); margin: 0 0 12px 0; text-transform: uppercase; }
+.desc { font-size: 0.95rem; color: #bbb; margin: 0; line-height: 1.4; font-weight: 500; }
+
+.price { font-family: var(--heavy-font); font-size: 2rem; color: var(--neon-white); margin: 15px 0 10px 0; display: block; }
+
+/* --- 3D Cart Action Trigger Triggers --- */
+.snipcart-add-item {
+ width: 100%;
+ background: var(--stamp-border);
+ color: var(--neon-white);
+ border: none;
+ border-bottom: 6px solid #b30030;
+ border-radius: 20px;
+ font-family: var(--heavy-font);
+ font-size: 1.3rem;
+ text-transform: uppercase;
+ padding: 16px;
+ cursor: pointer;
+ transition: transform 0.05s ease, border-bottom-width 0.05s ease;
+ user-select: none;
+}
+.snipcart-add-item:hover { background: #ff5c8a; }
+.snipcart-add-item:active { transform: translateY(6px); border-bottom-width: 0px; }
+
+.no-results { grid-column: 1/-1; text-align: center; font-family: var(--heavy-font); color: #333; font-size: 2rem; text-transform: uppercase; padding: 80px 0; }
+
+/* --- Printable Text Fallback Override Vectors --- */
+@media print {
+ .logo-text { color: #000000 !important; text-shadow: none !important; }
+ .logo-subtext { color: #444444 !important; }
+ .logo-badge { border: 2px solid #000000 !important; background: transparent !important; }
+ .badge-core, .badge-rim { color: #000000 !important; }
+}
+
+/* ==========================================================================
+ 4. Mobile Breakpoint Media Queries (Unifies structural mobile mechanics)
+ ========================================================================== */
+@media (max-width: 820px) {
+ body { padding: 0 20px 20px 20px; }
+
+ header {
+ flex-direction: column; /* Collapses title elements cleanly below each other */
+ align-items: center;
+ padding: 20px 0;
+ gap: 15px;
+ }
+
+ .logo-container {
+ align-items: center;
+ padding-right: 0;
+ }
+
+ .logo-badge {
+ position: relative;
+ top: 0; right: 0;
+ margin-top: 10px;
+ transform: rotate(0deg);
+ }
+
+ h1 { font-size: 3.2rem; text-align: center; white-space: normal; }
+
+ .controls {
+ width: 100%;
+ justify-content: center;
+ flex-wrap: wrap; /* Permits safe button line cascading on extremely narrow mobile panels */
+ }
+
+ header button {
+ padding: 10px 18px;
+ font-size: 0.95rem;
+ flex-grow: 1;
+ text-align: center;
+ }
+
+ /* Search box smoothly scales to full block line on small mobile screens */
+ .search-box-wrapper { width: 100%; height: 48px; }
+ .search-box-wrapper:hover,
+ .search-box-wrapper:focus-within { width: 100%; }
+
+ #stamp-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
+} \ No newline at end of file