Changes to shop.scroll.pub

ScrollHub
ScrollHub
16 days ago
Initial commit
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://shop.scroll.pub
+ metaTags
+ editButton /edit.html
+ title ScrollShop - Modern E-commerce
+ style.css
+ header
+ class header
+ nav
+ div ScrollShop
+ class logo
+ div
+ class nav-links
+ a Home
+ href #
+ a Shop
+ href #products
+ a About
+ href #about
+ a Contact
+ href #contact
+ a Cart
+ class cart-button
+ href #cart
+ span 0
+ class cart-count
+ div
+ class hero
+ h1 Modern Shopping Experience
+ p Discover our curated collection of premium products
+ a Shop Now
+ class primary-button
+ href #products
+ main
+ section
+ id products
+ class products
+ h2 Featured Products
+ div
+ class product-grid
+ div
+ class product-card
+ img /product1.jpg
+ alt Premium Watch
+ h3 Classic Timepiece
+ p $199.99
+ button
+ class add-to-cart
+ data-id 1
+ Add to Cart
+ div
+ class product-card
+ img /product2.jpg
+ alt Wireless Headphones
+ h3 Noise-Canceling Headphones
+ p $149.99
+ button
+ class add-to-cart
+ data-id 2
+ Add to Cart
+ div
+ class product-card
+ img /product3.jpg
+ alt Leather Backpack
+ h3 Designer Backpack
+ p $89.99
+ button
+ class add-to-cart
+ data-id 3
+ Add to Cart
+ div
+ class product-card
+ img /product4.jpg
+ alt Smartphone
+ h3 Latest Smartphone
+ p $799.99
+ button
+ class add-to-cart
+ data-id 4
+ Add to Cart
+ section
+ id about
+ class about
+ h2 Our Story
+ p We curate only the finest products with exceptional quality and design. Our mission is to make premium shopping accessible to everyone.
+ section
+ id contact
+ class contact
+ h2 Get In Touch
+ form
+ class contact-form
+ input
+ type text
+ placeholder Name
+ required
+ input
+ type email
+ placeholder Email
+ required
+ textarea
+ placeholder Message
+ required
+ button
+ type submit
+ class primary-button
+ Send Message
+ div
+ class cart-modal
+ div
+ class cart-content
+ span
+ class close-cart
+ ×
+ h2 Your Cart
+ div
+ class cart-items
+ div
+ class cart-total
+ strong Total: $0.00
+ button
+ class checkout-button
+ Checkout
+ footer
+ class footer
+ div
+ class footer-content
+ div
+ class footer-links
+ a Privacy Policy
+ href #
+ a Terms of Service
+ href #
+ a Shipping Info
+ href #
+ p ScrollShop - Quality Products, Exceptional Service
+ script.js
prompt.json
Changed around line 1
+ {
+ "id": "32b7443d-8221-4cf9-b0b6-126ea72e8919",
+ "object": "chat.completion",
+ "created": 1747723675,
+ "model": "deepseek-chat",
+ "choices": [
+ {
+ "index": 0,
+ "message": {
+ "role": "assistant",
+ "content": "Here's a complete e-commerce website built with Scroll, CSS, and JavaScript:\n\n---domain---\nshop.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://shop.scroll.pub\nmetaTags\neditButton /edit.html\ntitle ScrollShop - Modern E-commerce\nstyle.css\nheader\n class header\n nav\n div ScrollShop\n class logo\n div\n class nav-links\n a Home\n href #\n a Shop\n href #products\n a About\n href #about\n a Contact\n href #contact\n a Cart\n class cart-button\n href #cart\n span 0\n class cart-count\n div\n class hero\n h1 Modern Shopping Experience\n p Discover our curated collection of premium products\n a Shop Now\n class primary-button\n href #products\nmain\n section\n id products\n class products\n h2 Featured Products\n div\n class product-grid\n div\n class product-card\n img /product1.jpg\n alt Premium Watch\n h3 Classic Timepiece\n p $199.99\n button\n class add-to-cart\n data-id 1\n Add to Cart\n div\n class product-card\n img /product2.jpg\n alt Wireless Headphones\n h3 Noise-Canceling Headphones\n p $149.99\n button\n class add-to-cart\n data-id 2\n Add to Cart\n div\n class product-card\n img /product3.jpg\n alt Leather Backpack\n h3 Designer Backpack\n p $89.99\n button\n class add-to-cart\n data-id 3\n Add to Cart\n div\n class product-card\n img /product4.jpg\n alt Smartphone\n h3 Latest Smartphone\n p $799.99\n button\n class add-to-cart\n data-id 4\n Add to Cart\n section\n id about\n class about\n h2 Our Story\n p We curate only the finest products with exceptional quality and design. Our mission is to make premium shopping accessible to everyone.\n section\n id contact\n class contact\n h2 Get In Touch\n form\n class contact-form\n input\n type text\n placeholder Name\n required\n input\n type email\n placeholder Email\n required\n textarea\n placeholder Message\n required\n button\n type submit\n class primary-button\n Send Message\n div\n class cart-modal\n div\n class cart-content\n span\n class close-cart\n ×\n h2 Your Cart\n div\n class cart-items\n div\n class cart-total\n strong Total: $0.00\n button\n class checkout-button\n Checkout\nfooter\n class footer\n div\n class footer-content\n div\n class footer-links\n a Privacy Policy\n href #\n a Terms of Service\n href #\n a Shipping Info\n href #\n p ScrollShop - Quality Products, Exceptional Service\nscript.js\n---style.css---\n:root {\n --primary: #4a6fa5;\n --primary-dark: #3a5a8a;\n --secondary: #ff7e5f;\n --light: #f8f9fa;\n --dark: #212529;\n --gray: #6c757d;\n --light-gray: #e9ecef;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n}\n\nbody {\n line-height: 1.6;\n color: var(--dark);\n background-color: var(--light);\n}\n\n.header {\n background: white;\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n position: sticky;\n top: 0;\n z-index: 100;\n padding: 1rem 2rem;\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.logo {\n font-size: 1.8rem;\n font-weight: 700;\n color: var(--primary);\n}\n\n.nav-links {\n display: flex;\n gap: 1.5rem;\n}\n\n.nav-links a {\n text-decoration: none;\n color: var(--dark);\n font-weight: 500;\n transition: color 0.3s;\n}\n\n.nav-links a:hover {\n color: var(--primary);\n}\n\n.cart-button {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n background: var(--primary);\n color: white;\n padding: 0.5rem 1rem;\n border-radius: 5px;\n text-decoration: none;\n transition: background 0.3s;\n}\n\n.cart-button:hover {\n background: var(--primary-dark);\n}\n\n.cart-count {\n background: var(--secondary);\n color: white;\n border-radius: 50%;\n width: 20px;\n height: 20px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: 0.8rem;\n}\n\n.hero {\n background: linear-gradient(135deg, var(--primary), var(--primary-dark));\n color: white;\n padding: 5rem 2rem;\n text-align: center;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n}\n\n.hero p {\n font-size: 1.2rem;\n max-width: 600px;\n margin: 0 auto 2rem;\n}\n\n.primary-button {\n display: inline-block;\n background: var(--secondary);\n color: white;\n padding: 0.8rem 1.8rem;\n border-radius: 5px;\n text-decoration: none;\n font-weight: 600;\n transition: all 0.3s;\n border: none;\n cursor: pointer;\n}\n\n.primary-button:hover {\n background: #ff6a45;\n transform: translateY(-2px);\n box-shadow: 0 4px 8px rgba(0,0,0,0.1);\n}\n\nsection {\n padding: 4rem 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\nh2 {\n font-size: 2.2rem;\n margin-bottom: 2rem;\n text-align: center;\n color: var(--primary);\n}\n\n.product-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));\n gap: 2rem;\n margin-top: 2rem;\n}\n\n.product-card {\n background: white;\n border-radius: 8px;\n overflow: hidden;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n transition: transform 0.3s, box-shadow 0.3s;\n}\n\n.product-card:hover {\n transform: translateY(-5px);\n box-shadow: 0 10px 20px rgba(0,0,0,0.1);\n}\n\n.product-card img {\n width: 100%;\n height: 200px;\n object-fit: cover;\n}\n\n.product-card h3 {\n padding: 1rem 1rem 0;\n font-size: 1.2rem;\n}\n\n.product-card p {\n padding: 0.5rem 1rem;\n color: var(--primary);\n font-weight: 600;\n font-size: 1.1rem;\n}\n\n.product-card button {\n width: 100%;\n padding: 0.8rem;\n background: var(--primary);\n color: white;\n border: none;\n cursor: pointer;\n transition: background 0.3s;\n}\n\n.product-card button:hover {\n background: var(--primary-dark);\n}\n\n.about, .contact {\n background: white;\n margin: 2rem auto;\n border-radius: 8px;\n box-shadow: 0 4px 6px rgba(0,0,0,0.05);\n}\n\n.contact-form {\n max-width: 600px;\n margin: 0 auto;\n display: grid;\n gap: 1rem;\n}\n\n.contact-form input,\n.contact-form textarea {\n width: 100%;\n padding: 0.8rem;\n border: 1px solid var(--light-gray);\n border-radius: 5px;\n font-size: 1rem;\n}\n\n.contact-form textarea {\n height: 150px;\n resize: vertical;\n}\n\n.footer {\n background: var(--dark);\n color: white;\n padding: 2rem;\n text-align: center;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.footer-links {\n display: flex;\n justify-content: center;\n gap: 2rem;\n margin-bottom: 1rem;\n}\n\n.footer-links a {\n color: white;\n text-decoration: none;\n transition: color 0.3s;\n}\n\n.footer-links a:hover {\n color: var(--secondary);\n}\n\n.cart-modal {\n display: none;\n position: fixed;\n top: 0;\n right: 0;\n width: 100%;\n max-width: 400px;\n height: 100%;\n background: white;\n box-shadow: -2px 0 10px rgba(0,0,0,0.1);\n z-index: 1000;\n overflow-y: auto;\n}\n\n.cart-content {\n padding: 2rem;\n}\n\n.close-cart {\n position: absolute;\n top: 1rem;\n right: 1rem;\n font-size: 1.5rem;\n cursor: pointer;\n}\n\n.cart-items {\n margin: 2rem 0;\n}\n\n.cart-total {\n font-size: 1.2rem;\n text-align: right;\n margin: 1rem 0;\n padding-top: 1rem;\n border-top: 1px solid var(--light-gray);\n}\n\n.checkout-button {\n width: 100%;\n padding: 1rem;\n background: var(--secondary);\n color: white;\n border: none;\n border-radius: 5px;\n font-size: 1rem;\n cursor: pointer;\n transition: background 0.3s;\n}\n\n.checkout-button:hover {\n background: #ff6a45;\n}\n\n@media (max-width: 768px) {\n .hero h1 {\n font-size: 2.2rem;\n }\n \n .nav-links {\n gap: 1rem;\n }\n \n .product-grid {\n grid-template-columns: 1fr 1fr;\n }\n}\n\n@media (max-width: 480px) {\n .header {\n padding: 1rem;\n }\n \n .nav-links {\n gap: 0.5rem;\n }\n \n .product-grid {\n grid-template-columns: 1fr;\n }\n \n .cart-modal {\n max-width: 100%;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Cart functionality\n const cartButton = document.querySelector('.cart-button');\n const cartModal = document.querySelector('.cart-modal');\n const closeCart = document.querySelector('.close-cart');\n const addToCartButtons = document.querySelectorAll('.add-to-cart');\n const cartItemsContainer = document.querySelector('.cart-items');\n const cartCount = document.querySelector('.cart-count');\n const cartTotal = document.querySelector('.cart-total');\n const checkoutButton = document.querySelector('.checkout-button');\n \n let cart = [];\n \n // Toggle cart modal\n cartButton.addEventListener('click', function(e) {\n e.preventDefault();\n cartModal.style.display = 'block';\n });\n \n closeCart.addEventListener('click', function() {\n cartModal.style.display = 'none';\n });\n \n // Add to cart\n addToCartButtons.forEach(button => {\n button.addEventListener('click', function() {\n const productId = this.getAttribute('data-id');\n const productCard = this.closest('.product-card');\n const productName = productCard.querySelector('h3').textContent;\n const productPrice = parseFloat(productCard.querySelector('p').textContent.replace('$', ''));\n \n // Check if product already in cart\n const existingItem = cart.find(item => item.id === productId);\n \n if (existingItem) {\n existingItem.quantity += 1;\n } else {\n cart.push({\n id: productId,\n name: productName,\n price: productPrice,\n quantity: 1\n });\n }\n \n updateCart();\n \n // Show cart modal\n cartModal.style.display = 'block';\n });\n });\n \n // Update cart UI\n function updateCart() {\n cartItemsContainer.innerHTML = '';\n let total = 0;\n let itemCount = 0;\n \n cart.forEach(item => {\n const itemTotal = item.price * item.quantity;\n total += itemTotal;\n itemCount += item.quantity;\n \n const cartItem = document.createElement('div');\n cartItem.className = 'cart-item';\n cartItem.innerHTML = `\n
\n
\n

${item.name}

\n

$${item.price.toFixed(2)} x ${item.quantity}

\n
\n
\n

$${itemTotal.toFixed(2)}

\n \n
\n
\n `;\n \n cartItemsContainer.appendChild(cartItem);\n });\n \n // Update cart count\n cartCount.textContent = itemCount;\n \n // Update total\n cartTotal.innerHTML = `Total: $${total.toFixed(2)}`;\n \n // Add event listeners to remove buttons\n document.querySelectorAll('.remove-item').forEach(button => {\n button.addEventListener('click', function() {\n const itemId = this.getAttribute('data-id');\n cart = cart.filter(item => item.id !== itemId);\n updateCart();\n });\n });\n }\n \n // Checkout\n checkoutButton.addEventListener('click', function() {\n if (cart.length === 0) {\n alert('Your cart is empty!');\n return;\n }\n \n alert(`Thank you for your purchase! Total: $${cart.reduce((sum, item) => sum + (item.price * item.quantity), 0).toFixed(2)}`);\n cart = [];\n updateCart();\n cartModal.style.display = 'none';\n });\n \n // Close modal when clicking outside\n window.addEventListener('click', function(e) {\n if (e.target === cartModal) {\n cartModal.style.display = 'none';\n }\n });\n \n // Smooth scrolling for navigation\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function(e) {\n if (this.getAttribute('href') === '#cart') return;\n \n e.preventDefault();\n \n const targetId = this.getAttribute('href');\n if (targetId === '#') {\n window.scrollTo({\n top: 0,\n behavior: 'smooth'\n });\n return;\n }\n \n const targetElement = document.querySelector(targetId);\n if (targetElement) {\n targetElement.scrollIntoView({\n behavior: 'smooth'\n });\n }\n });\n });\n});\n---end---"
+ },
+ "logprobs": null,
+ "finish_reason": "stop"
+ }
+ ],
+ "usage": {
+ "prompt_tokens": 719,
+ "completion_tokens": 3485,
+ "total_tokens": 4204,
+ "prompt_tokens_details": {
+ "cached_tokens": 0
+ },
+ "prompt_cache_hit_tokens": 0,
+ "prompt_cache_miss_tokens": 719
+ },
+ "system_fingerprint": "fp_8802369eaa_prod0425fp8"
+ }
readme.scroll
Changed around line 1
+ # shop.scroll.pub
+
+ Prompt: website
+ Agent: deepseek
+ Model: deepseek-chat
+
+ ## User prompt
+ e-commerce app
+
+ ## System prompt
+ You are an expert web developer. Create a website based on this request: "e-commerce app"
+
+ Requirements:
+ - Use only Scroll, CSS, and JavaScript (NO frameworks, NO external dependencies)
+ - Create clean, semantic HTML5
+ - Make it mobile-responsive
+ - Follow modern best practices and accessibility guidelines
+ - Keep it simple but professional
+ - Use only relative links and no external resources
+ - Do not put a copyright symbol or all rights reserved in the footer.
+ - Make it beautiful. Dazzling. Advanced used of CSS.
+
+ As a refresher, for doing the html body, Scroll is a whitespace based language that uses a single indented space to mark a line (aka particle) as a subparticle of a parent line.
+
+ For example:
+
+ header
+ class hero
+ nav
+ div Scroll
+ class logo
+ div
+ class nav-links
+ a Features
+ href #features
+ a Examples
+ href #examples
+ a Edit
+ href edit.html
+ a GitHub
+ class cta-button
+ href https://github.com/breck7/scroll
+ div
+ class hero-content
+ h1 Write Better with Scroll
+ p The extendible markup language that makes source beautiful and compiles to anything
+ a Get Started
+ class primary-button
+ href https://hub.scroll.pub/
+ main
+ section
+ id features
+ class features
+ h2 Why Scroll?
+ div
+ class feature-grid
+ div
+ class feature-card
+ div ⚡
+ class feature-icon
+ h3 Simple Syntax
+ p Like Markdown, but more powerful. No parentheses needed.
+ div
+ class feature-card
+ div 🧩
+ class feature-icon
+ h3 Extendible
+ p Build your own custom parsers.
+ div
+ class feature-card
+ div 🎨
+ class feature-icon
+ h3 Beautiful Output
+ p Create stunning documents with minimal effort.
+ div
+ class feature-card
+ div 🚀
+ class feature-icon
+ h3 Fast & Light
+ p Built on the efficient PPS Stack.
+ section
+ id examples
+ class code-demo
+ h2 See It In Action
+ div
+ class code-container
+ pre
+ class code-example
+ div
+ class code-output
+ footer
+ div
+ class footer-content
+ div
+ class footer-links
+ a Documentation
+ href https://scroll.pub/tutorial.html
+ a Community
+ href https://www.reddit.com/r/WorldWideScroll/
+ a Blog
+ href https://scroll.pub/blog
+ p Started by Breck Yunits. Evolved by a community.
+ https://twitter.com/breckyunits Breck Yunits
+ https://github.com/breck7/scroll/graphs/contributors community
+
+
+ First suggest a short, memorable domain name ending in scroll.pub that represents this website. Then provide the website files. Use this exact format:
+
+ ---domain---
+ (domainscroll.pub here)
+ ---index.scroll---
+ buildHtml
+ baseUrl https://(domainscroll.pub here)
+ metaTags
+ editButton /edit.html
+ title (Title here)
+ style.css
+
+ (body content here. no blank lines please.)
+
+ script.js
+ ---style.css---
+ (CSS content here)
+ ---script.js---
+ (JavaScript content here)
+ ---end---
script.js
Changed around line 1
+ document.addEventListener('DOMContentLoaded', function() {
+ // Cart functionality
+ const cartButton = document.querySelector('.cart-button');
+ const cartModal = document.querySelector('.cart-modal');
+ const closeCart = document.querySelector('.close-cart');
+ const addToCartButtons = document.querySelectorAll('.add-to-cart');
+ const cartItemsContainer = document.querySelector('.cart-items');
+ const cartCount = document.querySelector('.cart-count');
+ const cartTotal = document.querySelector('.cart-total');
+ const checkoutButton = document.querySelector('.checkout-button');
+
+ let cart = [];
+
+ // Toggle cart modal
+ cartButton.addEventListener('click', function(e) {
+ e.preventDefault();
+ cartModal.style.display = 'block';
+ });
+
+ closeCart.addEventListener('click', function() {
+ cartModal.style.display = 'none';
+ });
+
+ // Add to cart
+ addToCartButtons.forEach(button => {
+ button.addEventListener('click', function() {
+ const productId = this.getAttribute('data-id');
+ const productCard = this.closest('.product-card');
+ const productName = productCard.querySelector('h3').textContent;
+ const productPrice = parseFloat(productCard.querySelector('p').textContent.replace('$', ''));
+
+ // Check if product already in cart
+ const existingItem = cart.find(item => item.id === productId);
+
+ if (existingItem) {
+ existingItem.quantity += 1;
+ } else {
+ cart.push({
+ id: productId,
+ name: productName,
+ price: productPrice,
+ quantity: 1
+ });
+ }
+
+ updateCart();
+
+ // Show cart modal
+ cartModal.style.display = 'block';
+ });
+ });
+
+ // Update cart UI
+ function updateCart() {
+ cartItemsContainer.innerHTML = '';
+ let total = 0;
+ let itemCount = 0;
+
+ cart.forEach(item => {
+ const itemTotal = item.price * item.quantity;
+ total += itemTotal;
+ itemCount += item.quantity;
+
+ const cartItem = document.createElement('div');
+ cartItem.className = 'cart-item';
+ cartItem.innerHTML = `
+
+
+

${item.name}

+

$${item.price.toFixed(2)} x ${item.quantity}

+
+
+

$${itemTotal.toFixed(2)}

+
+
+
+ `;
+
+ cartItemsContainer.appendChild(cartItem);
+ });
+
+ // Update cart count
+ cartCount.textContent = itemCount;
+
+ // Update total
+ cartTotal.innerHTML = `Total: $${total.toFixed(2)}`;
+
+ // Add event listeners to remove buttons
+ document.querySelectorAll('.remove-item').forEach(button => {
+ button.addEventListener('click', function() {
+ const itemId = this.getAttribute('data-id');
+ cart = cart.filter(item => item.id !== itemId);
+ updateCart();
+ });
+ });
+ }
+
+ // Checkout
+ checkoutButton.addEventListener('click', function() {
+ if (cart.length === 0) {
+ alert('Your cart is empty!');
+ return;
+ }
+
+ alert(`Thank you for your purchase! Total: $${cart.reduce((sum, item) => sum + (item.price * item.quantity), 0).toFixed(2)}`);
+ cart = [];
+ updateCart();
+ cartModal.style.display = 'none';
+ });
+
+ // Close modal when clicking outside
+ window.addEventListener('click', function(e) {
+ if (e.target === cartModal) {
+ cartModal.style.display = 'none';
+ }
+ });
+
+ // Smooth scrolling for navigation
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function(e) {
+ if (this.getAttribute('href') === '#cart') return;
+
+ e.preventDefault();
+
+ const targetId = this.getAttribute('href');
+ if (targetId === '#') {
+ window.scrollTo({
+ top: 0,
+ behavior: 'smooth'
+ });
+ return;
+ }
+
+ const targetElement = document.querySelector(targetId);
+ if (targetElement) {
+ targetElement.scrollIntoView({
+ behavior: 'smooth'
+ });
+ }
+ });
+ });
+ });
style.css
Changed around line 1
+ :root {
+ --primary: #4a6fa5;
+ --primary-dark: #3a5a8a;
+ --secondary: #ff7e5f;
+ --light: #f8f9fa;
+ --dark: #212529;
+ --gray: #6c757d;
+ --light-gray: #e9ecef;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ }
+
+ body {
+ line-height: 1.6;
+ color: var(--dark);
+ background-color: var(--light);
+ }
+
+ .header {
+ background: white;
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
+ position: sticky;
+ top: 0;
+ z-index: 100;
+ padding: 1rem 2rem;
+ }
+
+ nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ max-width: 1200px;
+ margin: 0 auto;
+ }
+
+ .logo {
+ font-size: 1.8rem;
+ font-weight: 700;
+ color: var(--primary);
+ }
+
+ .nav-links {
+ display: flex;
+ gap: 1.5rem;
+ }
+
+ .nav-links a {
+ text-decoration: none;
+ color: var(--dark);
+ font-weight: 500;
+ transition: color 0.3s;
+ }
+
+ .nav-links a:hover {
+ color: var(--primary);
+ }
+
+ .cart-button {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ background: var(--primary);
+ color: white;
+ padding: 0.5rem 1rem;
+ border-radius: 5px;
+ text-decoration: none;
+ transition: background 0.3s;
+ }
+
+ .cart-button:hover {
+ background: var(--primary-dark);
+ }
+
+ .cart-count {
+ background: var(--secondary);
+ color: white;
+ border-radius: 50%;
+ width: 20px;
+ height: 20px;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 0.8rem;
+ }
+
+ .hero {
+ background: linear-gradient(135deg, var(--primary), var(--primary-dark));
+ color: white;
+ padding: 5rem 2rem;
+ text-align: center;
+ }
+
+ .hero h1 {
+ font-size: 3rem;
+ margin-bottom: 1rem;
+ }
+
+ .hero p {
+ font-size: 1.2rem;
+ max-width: 600px;
+ margin: 0 auto 2rem;
+ }
+
+ .primary-button {
+ display: inline-block;
+ background: var(--secondary);
+ color: white;
+ padding: 0.8rem 1.8rem;
+ border-radius: 5px;
+ text-decoration: none;
+ font-weight: 600;
+ transition: all 0.3s;
+ border: none;
+ cursor: pointer;
+ }
+
+ .primary-button:hover {
+ background: #ff6a45;
+ transform: translateY(-2px);
+ box-shadow: 0 4px 8px rgba(0,0,0,0.1);
+ }
+
+ section {
+ padding: 4rem 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+ }
+
+ h2 {
+ font-size: 2.2rem;
+ margin-bottom: 2rem;
+ text-align: center;
+ color: var(--primary);
+ }
+
+ .product-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
+ gap: 2rem;
+ margin-top: 2rem;
+ }
+
+ .product-card {
+ background: white;
+ border-radius: 8px;
+ overflow: hidden;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ transition: transform 0.3s, box-shadow 0.3s;
+ }
+
+ .product-card:hover {
+ transform: translateY(-5px);
+ box-shadow: 0 10px 20px rgba(0,0,0,0.1);
+ }
+
+ .product-card img {
+ width: 100%;
+ height: 200px;
+ object-fit: cover;
+ }
+
+ .product-card h3 {
+ padding: 1rem 1rem 0;
+ font-size: 1.2rem;
+ }
+
+ .product-card p {
+ padding: 0.5rem 1rem;
+ color: var(--primary);
+ font-weight: 600;
+ font-size: 1.1rem;
+ }
+
+ .product-card button {
+ width: 100%;
+ padding: 0.8rem;
+ background: var(--primary);
+ color: white;
+ border: none;
+ cursor: pointer;
+ transition: background 0.3s;
+ }
+
+ .product-card button:hover {
+ background: var(--primary-dark);
+ }
+
+ .about, .contact {
+ background: white;
+ margin: 2rem auto;
+ border-radius: 8px;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.05);
+ }
+
+ .contact-form {
+ max-width: 600px;
+ margin: 0 auto;
+ display: grid;
+ gap: 1rem;
+ }
+
+ .contact-form input,
+ .contact-form textarea {
+ width: 100%;
+ padding: 0.8rem;
+ border: 1px solid var(--light-gray);
+ border-radius: 5px;
+ font-size: 1rem;
+ }
+
+ .contact-form textarea {
+ height: 150px;
+ resize: vertical;
+ }
+
+ .footer {
+ background: var(--dark);
+ color: white;
+ padding: 2rem;
+ text-align: center;
+ }
+
+ .footer-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ }
+
+ .footer-links {
+ display: flex;
+ justify-content: center;
+ gap: 2rem;
+ margin-bottom: 1rem;
+ }
+
+ .footer-links a {
+ color: white;
+ text-decoration: none;
+ transition: color 0.3s;
+ }
+
+ .footer-links a:hover {
+ color: var(--secondary);
+ }
+
+ .cart-modal {
+ display: none;
+ position: fixed;
+ top: 0;
+ right: 0;
+ width: 100%;
+ max-width: 400px;
+ height: 100%;
+ background: white;
+ box-shadow: -2px 0 10px rgba(0,0,0,0.1);
+ z-index: 1000;
+ overflow-y: auto;
+ }
+
+ .cart-content {
+ padding: 2rem;
+ }
+
+ .close-cart {
+ position: absolute;
+ top: 1rem;
+ right: 1rem;
+ font-size: 1.5rem;
+ cursor: pointer;
+ }
+
+ .cart-items {
+ margin: 2rem 0;
+ }
+
+ .cart-total {
+ font-size: 1.2rem;
+ text-align: right;
+ margin: 1rem 0;
+ padding-top: 1rem;
+ border-top: 1px solid var(--light-gray);
+ }
+
+ .checkout-button {
+ width: 100%;
+ padding: 1rem;
+ background: var(--secondary);
+ color: white;
+ border: none;
+ border-radius: 5px;
+ font-size: 1rem;
+ cursor: pointer;
+ transition: background 0.3s;
+ }
+
+ .checkout-button:hover {
+ background: #ff6a45;
+ }
+
+ @media (max-width: 768px) {
+ .hero h1 {
+ font-size: 2.2rem;
+ }
+
+ .nav-links {
+ gap: 1rem;
+ }
+
+ .product-grid {
+ grid-template-columns: 1fr 1fr;
+ }
+ }
+
+ @media (max-width: 480px) {
+ .header {
+ padding: 1rem;
+ }
+
+ .nav-links {
+ gap: 0.5rem;
+ }
+
+ .product-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .cart-modal {
+ max-width: 100%;
+ }
+ }