space-opal

bySupash
Homepage
Homepage

Comments (0)

No comments yet. Be the first!

System Requirements

System Requirements Document for space-opal

1. Introduction

1.1 PROJECT: SMX THRIFT / Universal Design-Locked E-Commerce Website Specification

==================================================

  1. PROJECT IDENTITY

Brand Name: SMX THRIFT

Short Name: SMX

Location: Belagavi, Karnataka, India.

Business: Premium Online Thrift and Streetwear Store.

Tagline:

PRE-LOVED. RE-DEFINED.

IMPORTANT:

The final output must be a complete, responsive, professional and functional e-commerce website.

The chosen project name is space-opal.

2. System Overview

Page 1 of 45

2.1 PROJECT: SMX THRIFT / Universal Design-Locked E-Commerce Website Specification

==================================================

  1. EXACT WEBSITE STRUCTURE

Create these public pages:

  1. Homepage: /

  2. Shop: /shop

  3. New Arrivals: /new-arrivals

  4. Categories: /categories

  5. Product Details: /product/:slug

  6. Shopping Cart: /cart

  7. Checkout: /checkout

  8. About Us: /about

  9. Contact: /contact

  10. Privacy Policy: /privacy

  11. Terms: /terms

ADMIN PAGES:

  1. Admin Login: /admin

  2. Dashboard: /admin/dashboard

  3. Orders: /admin/orders

Page 2 of 45
  1. Products: /admin/products

  2. Add Product: /admin/products/new

  3. Edit Product: /admin/products/:id/edit

<!-- planning-notes:v1:start -->
Page 3 of 45

Planning notes

Planning resolved these page and owner names itself instead of stopping. Review them before building.

Added during planning

  • Logout: Named in your document but missing from the generated catalog
  • /product/:slug: Named in your document but missing from the generated catalog
  • Cart: Named in your document but missing from the generated catalog
  • About: Named in your document but missing from the generated catalog
  • Privacy: Named in your document but missing from the generated catalog
  • /admin/dashboard: Named in your document but missing from the generated catalog
  • /admin/orders: Named in your document but missing from the generated catalog
  • /admin/products: Named in your document but missing from the generated catalog
  • /admin/products/:id/edit: Named in your document but missing from the generated catalog
  • /admin/inventory: Named in your document but missing from the generated catalog
  • /admin/categories: Named in your document but missing from the generated catalog
  • /admin/settings: Named in your document but missing from the generated catalog

Name changes

Page 4 of 45
  • /: The document does not contain this page name; it was offered only as a suggestion
  • /admin/products/new: The generated catalog named this page '/admin/products'
<!-- planning-notes:v1:end -->

3. Functional Requirements

Page 5 of 45

3.1 PROJECT: SMX THRIFT / Universal Design-Locked E-Commerce Website Specification

  1. Inventory: /admin/inventory

  2. Categories: /admin/categories

  3. Settings: /admin/settings

All routes must work.

==================================================

  1. GLOBAL NAVIGATION

Create one consistent navigation component used across all public pages.

Desktop:

LEFT:

SMX THRIFT logo.

CENTER:

HOME | SHOP | NEW ARRIVALS | CATEGORIES | ABOUT.

RIGHT:

Search icon | Cart icon.

MOBILE:

  • SMX THRIFT logo.

  • Search icon.

  • Cart icon.

  • Hamburger menu.

Page 6 of 45

Navigation requirements:

  • Sticky navigation.

  • White background.

  • Thin bottom border.

  • Smooth mobile menu.

  • Cart item count badge.

  • Consistent spacing.

  1. HOMEPAGE — EXACT SECTION ORDER

Build the homepage using this exact order.

SECTION 1: ANNOUNCEMENT BAR

SECTION 2: NAVIGATION BAR

Use the exact navigation specification above.

SECTION 3: HERO BANNER

Full-width fashion editorial image.

Heading:

PRE-LOVED.

RE-DEFINED.

Supporting text:

"Unique finds. Timeless style. Better prices."

Buttons:

Page 7 of 45

EXPLORE COLLECTION

SECTION 4: FEATURED CATEGORIES

Heading:

SHOP BY CATEGORY.

Display nine category tiles:

  • Oversized T-Shirts.

  • Vintage Shirts.

  • Hoodies.

  • Sweatshirts.

  • Denim.

  • Cargo Pants.

  • Trousers.

  • Jackets.

  • Accessories.

Use image-led category cards.

SECTION 5: NEW ARRIVALS

Heading:

FRESH FINDS.

Subtitle:

"New pieces. Limited availability."

Page 8 of 45

Display the latest eight products.

SECTION 6: FEATURED COLLECTION

Heading:

THE SMX SELECTION.

Display products marked as featured by the admin.

SECTION 7: BRAND STORY

Heading:

NOT JUST CLOTHES. IT'S A FIND.

Description:

"At SMX THRIFT, we believe great style doesn't need a huge price tag. Discover carefully selected pieces that bring individuality, personality and timeless style to your wardrobe."

SECTION 8: PROMOTIONAL BANNER

Heading:

YOUR NEXT FAVOURITE FIT IS WAITING.

Button:

SHOP THE COLLECTION.

SECTION 9: FOOTER

Include:

  • SMX THRIFT logo.

  • About Us.

Page 9 of 45
  • Contact.

  • Instagram.

  • WhatsApp.

  • Belagavi, Karnataka.

  • Privacy Policy.

  • Terms and Conditions.

  • Shipping Policy.

  1. PRODUCT CATALOGUE DESIGN

Use the same product card component everywhere.

PRODUCT CARD:

  • Product image.

  • Product name.

  • Selling price.

  • Original price.

  • Discount label when applicable.

  • Availability.

  • Quick Add button.

  • Product name.

  • Price.

  • Original price.

Page 10 of 45
  • Discount.

  • Description.

  • Sizes.

  • Condition.

  • Measurements.

  • Availability.

  • Add to Cart.

Conditions:

  • Brand New.

  • Like New.

  • Good.

  • Pre-Loved.

  1. SHOPPING CART

Implement a functional cart.

Use a shared cart state across the entire application.

Persist cart information in local storage.

Features:

  • Add item.

  • Remove item.

  • Update quantity.

Page 11 of 45
  • Select size.

  • View images.

  • View subtotal.

  • View delivery charges.

  • View total.

Create a slide-in cart drawer.

Do not require customer login.

Validate stock and prices from Supabase before creating an order.

  1. CHECKOUT AND WHATSAPP

No payment gateway.

Use WhatsApp Click-to-Chat.

Checkout fields:

  • Full Name.

  • Mobile Number.

  • Full Address.

  • City.

  • PIN Code.

  • Additional Instructions.

Button:

PLACE ORDER ON WHATSAPP.

Page 12 of 45

ORDER WORKFLOW:

  1. Validate details.

  2. Validate products and prices.

  3. Reserve inventory.

  4. Create database order.

  5. Generate unique Order ID.

  6. Save order items.

  7. Generate WhatsApp message.

  8. Open WhatsApp with prefilled message.

Use:

https://wa.me/91XXXXXXXXXX?text=ENCODED_MESSAGE

The WhatsApp number must be configurable from admin settings.

Use this message format:

Hello SMX THRIFT!

I would like to place an order.

ORDER ID: #SMX1001

CUSTOMER DETAILS:

The WhatsApp number must be configurable from admin settings.

Use this message format:

Hello SMX THRIFT!

Page 13 of 45

I would like to place an order.

ORDER ID: #SMX1001

CUSTOMER DETAILS:

Name: [Name]

Phone: [Phone]

Address: [Address]

City: [City]

PIN: [PIN]

ORDER ITEMS:

[Product Name]

Size: [Size]

Quantity: [Quantity]

Price: ₹[Price]

Subtotal: ₹[Subtotal]

Delivery: To be confirmed

Total: ₹[Total]

Please confirm my order and share payment details.

Thank you!

Opening WhatsApp does not mean a message was sent.

The customer must manually press SEND.

Orders must be stored even if WhatsApp is closed.

Page 14 of 45
  1. ADMIN AUTHENTICATION

Create a secure admin login.

URL:

/admin

Initial username:

supash

Configure the password separately through a secure authentication setup.

Use Supabase Auth.

Requirements:

  • No customer login.

  • No customer registration.

  1. ADMIN DASHBOARD

Use a consistent professional dashboard layout.

SIDEBAR:

  • Dashboard.

  • Orders.

  • Products.

  • Add Product.

  • Inventory.

  • Categories.

Page 15 of 45
  • Settings.

  • Logout.

DASHBOARD METRICS:

  • Total Orders.

  • New Orders.

  • Pending Orders.

  • Confirmed Orders.

  • Completed Orders.

  • Total Products.

  • Out of Stock.

  • Paid Revenue.

Include:

  • Revenue chart.

  • Recent orders.

  • Recent products.

  • Low stock alerts.

  • New order notifications.

  1. ORDER MANAGEMENT

Store all orders in Supabase.

Display:

Page 16 of 45
  • Order ID.

  • Customer.

  • Phone.

  • Products.

  • Sizes.

  • Quantity.

  • Total.

  • Address.

  • Date.

  • Status.

  • Payment Status.

Order statuses:

  • New.

  • Pending Confirmation.

  • Confirmed.

  • Processing.

  • Shipped.

  • Delivered.

  • Cancelled.

Payment statuses:

Page 17 of 45
  • Unpaid.

  • Payment Pending.

  • Paid.

  • Refunded.

Admin actions:

  • View order.

  • Contact customer through WhatsApp.

  • Confirm.

  • Update status.

  • Update payment status.

  • Cancel.

Track unseen orders using database timestamps and admin activity records.

  1. PRODUCT AND INVENTORY MANAGEMENT

Admin can:

  • Add products.

  • Edit products.

  • Delete products.

  • Upload multiple images.

  • Change main image.

  • Update prices.

Page 18 of 45
  • Update descriptions.

  • Manage sizes.

  • Manage categories.

  • Update stock.

  • Feature products.

  • Mark new arrivals.

INVENTORY:

  • Stock by size.

  • Low stock alerts.

  • Sold out indicators.

  • Stock reservations.

  • Automatic stock updates.

Use atomic database operations to prevent overselling.

Release reservations for expired or cancelled orders.

  1. STORE SETTINGS

Allow admin to update:

  • Store Name.

  • WhatsApp Number.

  • Contact Number.

  • Instagram URL.

Page 19 of 45
  • Address.

  • Delivery Charges.

  • Free Delivery Threshold.

  • Announcement Bar.

  • Hero Banner.

  • Logo.

  • Foreign keys.

  • Database constraints.

  • Row Level Security.

  • Authentication.

  • Secure database functions.

  • Server-side order creation.

  • Storage policies.

  • Error handling.

Customer data must remain private.

  1. Use the exact same backend schema.

  2. Use the exact same checkout workflow.

  3. TESTING

Test:

CUSTOMER:

Page 20 of 45
  • Homepage.

  • Navigation.

  • Categories.

  • Search.

  • Product details.

  • Add to Cart.

  • Cart persistence.

  • Checkout.

  • WhatsApp message.

  • Order creation.

ADMIN:

  • Login.

  • Dashboard.

  • Orders.

  • Notifications.

  • Product creation.

  • Image uploads.

  • Inventory.

  • Store settings.

Fix all discovered errors.

Page 21 of 45

For LOVABLE:

Build the complete application using the specified design system, technology stack and functionality.

For ANTIGRAVITY:

Create the same application in the project workspace using the specified design system, technology stack and functionality.

Do not leave buttons non-functional.

Ask for missing external credentials when necessary.

4. User Personas

RoleResponsibilitiesInputsDecisions / OutcomesAccess
Shopper (customer)Browses the storefront, views products and the featured "THE SMX SELECTION." collection, places orders, and views their order.Product listings, prices, sizes, categories, images, announcement bar, hero bannerPlaces an order; views order status. No customer login or registration exists.Public storefront only; no account.
Admin (store operator)Runs the store end to end: manages orders and inventory, curates merchandising, and maintains store settings.Order records (with database timestamps and admin activity records), product data, store configurationConfirms, updates status, updates payment status, or cancels orders; contacts customers via WhatsApp; adds/edits/deletes products; uploads multiple images and sets the main image; updates prices, descriptions, sizes, categories, and stock; features products and marks new arrivals; updates store settings.Admin login at /admin; dashboard /admin/dashboard; orders /admin/orders; products /admin/products; add product /admin/products/new; edit product /admin/products/:id/edit.

4.1 Shopper journey

  1. Arrives on the storefront and browses products, including the featured "THE SMX SELECTION." collection.
  2. Selects items (size, category, images, price) and places an order without creating an account.
  3. Views the order to follow its progress.
Page 22 of 45

4.2 Admin journey

  1. Logs in at /admin and reviews the dashboard.
  2. Opens /admin/orders to view an order, then confirms it, updates its status or payment status, cancels it, or contacts the customer through WhatsApp.
  3. Tracks unseen orders using database timestamps and admin activity records.
  4. Manages the catalog from /admin/products: adds products at /admin/products/new, edits them at /admin/products/:id/edit, deletes them, manages images, prices, descriptions, sizes, categories, and stock, and flags featured products and new arrivals.
  5. Updates store settings: store name, WhatsApp number, contact number, Instagram URL, address, delivery charges, free delivery threshold, announcement bar, hero banner, and logo.

Supporting actors (not human personas): the database, which supplies order timestamps and admin activity records, and WhatsApp, used to contact customers.

Default noted: the admin is treated as a single operator role; the evidence does not define multiple admin permission levels.

5. Core User Flows

Page 23 of 45

5.1 Browse and discover products

Actors: Shopper (primary); storefront pages and shared cart state (supporting).

Trigger: Shopper opens the site at /.

  1. Homepage renders in the fixed section order, beginning with the announcement bar and hero banner ("PRE-LOVED. RE-DEFINED.", supporting text "Unique finds. Timeless style. Better prices.", button EXPLORE COLLECTION).
  2. Shopper navigates to /shop, /new-arrivals, or /categories, or opens a product from the promotional banner ("YOUR NEXT FAVOURITE FIT IS WAITING.", button SHOP THE COLLECTION).
  3. Shopper opens /product/:slug; the gallery appears on the left and product information on the right.
  4. Shopper may use Quick Add from a listing or Add to Cart from the product page.

Result: Shopper reaches a product and can add it to the cart. No login is required at any point.

Page 24 of 45

5.2 Manage the cart

Actors: Shopper (primary); shared cart state and local storage (supporting).

Trigger: Shopper adds an item via Quick Add or Add to Cart.

  1. Item enters the shared cart state, persisted in local storage.
  2. Shopper opens the slide-in cart drawer.
  3. Shopper selects size, views images, updates quantity, or removes items.
  4. Drawer shows subtotal, delivery charges, and total.

Result: Cart contents survive across the application and reloads. Continuation: proceed to checkout.

Page 25 of 45

5.3 Place an order via WhatsApp

Actors: Shopper (primary); Supabase (stock/price validation, order records); WhatsApp Click-to-Chat (handoff).

Trigger: Shopper selects checkout from the cart.

  1. Shopper completes fields: Full Name, Mobile Number, Full Address, City, PIN Code, Additional Instructions.
  2. Shopper presses PLACE ORDER ON WHATSAPP.
  3. System validates details, then validates products and prices against Supabase.
  4. System reserves inventory, creates the database order, generates a unique Order ID (e.g. #SMX1001), and saves order items.
  5. System generates the prefilled message and opens https://wa.me/91XXXXXXXXXX?text=ENCODED_MESSAGE; the number is configurable in admin settings.

Result: Order exists in Supabase and WhatsApp opens with the message. Important: opening WhatsApp does not mean the message was sent — the customer must manually press SEND.

Failure/recovery: If detail, product, or price validation fails, no order is created and the shopper corrects the checkout form. Reservations for expired or cancelled orders are released.

Page 26 of 45

5.4 Admin sign-in

Actors: Admin (primary); Supabase Auth (supporting).

Trigger: Admin opens /admin.

  1. Admin enters the initial username supash and the password configured separately through secure authentication setup.
  2. Supabase Auth verifies credentials.

Result: Admin reaches /admin/dashboard. Failure: invalid credentials keep the admin on the login page.

5.5 Monitor the store from the dashboard

Actors: Admin (primary); Supabase (supporting).

Trigger: Admin signs in or selects Dashboard in the sidebar.

  1. Dashboard shows metrics: Total Orders, New Orders, Pending Orders, Confirmed Orders, Completed Orders, Total Products, Out of Stock, Paid Revenue.
  2. Admin reviews the revenue chart, recent orders, recent products, and low stock alerts.

Result: Admin has a current operational view. Continuation: open Orders or Products.

Page 27 of 45

5.6 Process an order

Actors: Admin (primary); customer via WhatsApp (participant); Supabase (supporting).

Trigger: New order notification, or admin opens /admin/orders.

  1. Admin reviews Order ID, Customer, Phone, Products, Sizes, Quantity, Total, Address, and Date.
  2. Admin views the order and may contact the customer through WhatsApp.
  3. Admin confirms, updates status, updates payment status, or cancels.

Result: Order status and payment status reflect the decision; cancellations release stock reservations. Unseen orders are tracked using database timestamps and admin activity records.

5.7 Manage the product catalog

Actors: Admin (primary); Supabase (supporting).

Trigger: Admin selects Products or Add Product in the sidebar.

  1. Admin adds a product at /admin/products/new or edits at /admin/products/:id/edit.
  2. Admin uploads multiple images, changes the main image, updates prices and descriptions, manages sizes and categories, updates stock, features products, and marks new arrivals.
  3. Admin may delete a product.

Result: Catalog changes are stored in Supabase and reflected on the storefront. Inventory uses atomic database operations to prevent overselling, with automatic stock updates and stock reservations.

Page 28 of 45

5.8 Update store settings

Actors: Admin (primary); Supabase (supporting).

Trigger: Admin selects Settings in the sidebar.

  1. Admin updates Store Name, WhatsApp Number, Contact Number, Instagram URL, Address, Delivery Charges, Free Delivery Threshold, Announcement Bar, Hero Banner, and Logo.

Result: Storefront announcement bar, hero banner, delivery charges, and WhatsApp checkout target reflect the saved values.

Default (not specified in source): Sidebar also lists Inventory and Categories; their detailed flows follow the product and category management rules above.

6. Visuals Colors and Theme

[Design proposal; unspecified choices are defaults.]

Page 29 of 45

6.1 Visuals, Colours and Theme

SMX THRIFT is a premium thrift and streetwear store for young style hunters in Belagavi, carrying one-off finds. The muse is Susan Kare: small, friendly symbols on a tight grid, confident and warm rather than corporate. The locked design system is unchanged and applies identically on both platforms.

Colour tokens (light mode, exact):

RoleHex
Primary background#FFFFFF
Secondary background / quiet bands#F7F6F3
Primary text#111111
Secondary text#777777
Border / hairline#E8E8E8
Accent#222222
Success (stock states only)#21845B
Warning (stock states only)#D69E36
Error (stock states only)#D94B4B

White ground and black type hold most of every page; #F7F6F3 marks quiet bands, #E8E8E8 draws 1px hairlines. Green, amber and red appear only as availability markers. No gradients, glows, drop shadows, random colours or blue/indigo accents.

Page 30 of 45

Typography: Headings Space Grotesk — Bold 700 caps for the hero and section titles, Medium 500 for labels, tight tracking at large sizes. Body Inter. Playfair Display italic marks editorial accents. Weights 400/500/600/700. Modular 1.25 scale: 40/32/24/16/14 on mobile rising to 120/64/40/18/14 on desktop; hero headline clamp(40px, 9vw, 120px).

Shape and spacing: Sharp corners everywhere — buttons 2px, product cards 0px, inputs 2px, modals 4px. Hairline 1px #E8E8E8 borders, consistent spacing rhythm, small pixel-style icons. Primary buttons black fill with white text; secondary buttons white with black border and black text.

Imagery: Large editorial fashion photos on plain grounds — garments flat or on a single model — at a consistent 4:5 ratio, undistorted. Small pixel glyphs mark condition, size and stock. Product grids run 2 columns mobile, 3 tablet, 4 desktop. Readable text and controls stay whole inside the viewport and their container at 375px, 768px and 1280px; imagery and decoration may bleed and crop instead.

Public entry (homepage hero): a full-bleed editorial photograph fills the first screen. A black band sits at the left edge with a 1px white rule; the headline stacks in two white Space Grotesk 700 lines — PRE-LOVED. / RE-DEFINED. — with the subline "Unique finds. Timeless style. Better prices." and one black-on-white EXPLORE COLLECTION button below the rule. Left-aligned, never centred. A dark overlay only where readability requires it. The black announcement bar above runs "DISCOVER YOUR NEXT FAVOURITE FIT — SHOP SMX THRIFT." in small uppercase 12px caps.

Page 31 of 45

6.2 PROJECT: SMX THRIFT / Universal Design-Locked E-Commerce Website Specification

Design Inspiration:

Premium international streetwear brands, minimalist fashion boutiques and thriftacular.com.

Create an original brand identity.

Do not copy existing websites.

==================================================

  1. DESIGN SYSTEM — DO NOT CHANGE

Both platforms must use the following exact design system.

COLOUR PALETTE:

Primary Background: #FFFFFF

Secondary Background: #F7F6F3

Primary Text: #111111

Secondary Text: #777777

Border: #E8E8E8

Accent: #222222

Success: #21845B

Warning: #D69E36

Error: #D94B4B

TYPOGRAPHY:

Page 32 of 45

Headings: Space Grotesk.

Body Text: Inter.

Editorial Accent: Playfair Display.

FONT WEIGHTS:

  • Regular: 400.

  • Medium: 500.

  • Semibold: 600.

  • Bold: 700.

DESIGN RULES:

  • White backgrounds dominate.

  • Black typography.

  • Large editorial fashion images.

  • Minimal borders.

  • Consistent spacing.

  • Premium product presentation.

  • No unnecessary gradients.

  • No excessive shadows.

  • No random colours.

  • No excessive rounded cards.

BORDER RADIUS:

Page 33 of 45
  • Buttons: 2px.

  • Product cards: 0px.

  • Input fields: 2px.

  • Modals: 4px.

BUTTON STYLE:

Primary buttons:

Black background, white text.

BUTTON STYLE:

Secondary buttons:

White background, black border, black text.

Text:

"DISCOVER YOUR NEXT FAVOURITE FIT — SHOP SMX THRIFT."

Black background.

White text.

Small uppercase typography.

SHOP NEW ARRIVALS

Design:

  • Large background photograph.

  • Dark overlay only if necessary for readability.

  • Large white typography.

Page 34 of 45
  • Left-aligned text.

  • Premium fashion editorial composition.

DESKTOP GRID:

Four columns.

TABLET GRID:

Three columns.

MOBILE GRID:

Two columns.

PRODUCT IMAGE:

Use a consistent 4:5 aspect ratio.

Images must maintain their original proportions without distortion.

PRODUCT DETAILS PAGE:

Left:

Product image gallery.

Right:

Product information.

Display:

  1. Use the exact same colour palette.

  2. Use the exact same typography.

  3. Use the exact same spacing system.

Page 35 of 45
  1. Use the exact same page structure.

  2. Use the exact same component hierarchy.

  3. Use the exact same product card design.

  4. Use the exact same navigation layout.

  5. Use the exact same image aspect ratios.

  6. Use the exact same animation settings.

  7. Use the exact same responsive breakpoints.

  8. Use the exact same button styles.

  9. Use the exact same backend schema.

FINAL BRANDING:

SMX THRIFT

PRE-LOVED. RE-DEFINED.

Page 36 of 45

7. Signature Design Concept

[Design proposal; unspecified choices are defaults.]

One central design system, built as reusable components rather than page-by-page design: a single product card, one navigation layout, one button set, one spacing scale, one image ratio, one animation setting — shared across every page and identical on Lovable and Antigravity. The homepage keeps its fixed section order (announcement bar, hero, categories, product grid, promotional banner, footer) with no added or removed sections.

Signature moves:

  • A black announcement bar runs a slow marquee of the fit line in 12px caps.
  • A pixel-icon row under each product card shows condition and size as small glyphs.
  • The hero headline stacks in two lines over a black band at the left edge.
  • The cart badge is a small square chip, 2px radius, black fill.
  • Category cards are sharp image tiles with a caps label on a white strip at the base.

The product card is the system's anchor: image, name, selling price, original price, discount label when applicable, availability — used everywhere, including the four-column desktop grid. Sticky white navigation carries the SMX THRIFT logo, HOME | SHOP | NEW ARRIVALS | CATEGORIES | ABOUT, search and cart icons, a thin bottom border and a smooth mobile menu. Brand identity never changes between pages; unspecified details take the most minimal option consistent with the system.

Page 37 of 45

7.1 PROJECT: SMX THRIFT / Universal Design-Locked E-Commerce Website Specification

Create a central design system.

Create reusable components rather than designing each page independently.

8. Interaction Model & Motion Direction

[Design proposal; unspecified choices are defaults.]

Interaction Model: Animated Motion Tempo: restrained Hero Dimensionality: flat

Landing Hero Motion Brief — Focal subject: the full-bleed editorial photograph behind the black left-edge band. Input→transformation→outcome: on load, the photo settles from a subtle fade while the two headline lines and the EXPLORE COLLECTION button resolve in place; the visitor reads the fit line, then moves to the collection — no new behaviour, only the accepted fade and hover transitions. Motion vocabulary: Framer Motion subtle fade on page change, product image scale to 1.03 on hover, cart drawer sliding in from the right, modals fading and scaling, buttons with subtle opacity and colour transitions. No bounce, no parallax, no distracting animation. Composed first frame: white sticky bar with hairline border, black marquee bar, then the photo with the black band, white stacked headline, subline and one button. Reduced-motion state: all fades and scales resolve instantly to their final frame; the marquee becomes a static wrapped line so the full fit line stays readable; the cart drawer and modals appear without transition.

Page 38 of 45

8.1 PROJECT: SMX THRIFT / Universal Design-Locked E-Commerce Website Specification

  • Subtle animations.

  • Clean navigation.

Hover:

Subtle opacity and colour transition.

ANIMATION:

Use Framer Motion.

  • Page transitions: subtle fade.

  • Product hover: slight image scale.

  • Buttons: subtle hover transitions.

  • Cart drawer: smooth slide-in.

  • Modals: subtle fade and scale.

Avoid distracting animations.

9. Non-Functional Requirements

Page 39 of 45

9.1 PROJECT: SMX THRIFT / Universal Design-Locked E-Commerce Website Specification

  • Secure admin sessions.

  • Protected admin routes.

  • Server-side authorization.

  • Supabase Row Level Security.

  • No credentials in frontend code.

  • No credentials in frontend code.

SECURITY:

  • Admin authentication.

SECURITY:

  • Database permissions.

  • Customer data privacy.

  • Inventory concurrency.

  • Environment variable exposure.

10. Tech Stack

Page 40 of 45

10.1 PROJECT: SMX THRIFT / Universal Design-Locked E-Commerce Website Specification

==================================================

  1. MANDATORY TECHNOLOGY STACK

Use the same technology stack on both platforms.

Frontend:

  • React.

  • TypeScript.

  • Vite.

  • Tailwind CSS.

  • React Router.

  • Lucide React Icons.

Backend:

  • Supabase.

Database:

  • PostgreSQL.

Authentication:

  • Supabase Auth.

Image Storage:

  • Supabase Storage.
Page 41 of 45

Animations:

  • Framer Motion.

Icons:

  • Lucide React.

Charts:

  • Recharts.

Form Validation:

  • React Hook Form.

  • Zod.

Use these technologies consistently.

Do not switch frameworks or libraries without a genuine technical requirement.

Use Recharts for charts.

Use Supabase Storage for images.

  1. DATABASE

Use Supabase PostgreSQL.

  1. DATABASE

Tables:

  • products.

  • product_variants.

Page 42 of 45
  • categories.

  • orders.

  • order_items.

  • admin_users.

  • store_settings.

  • admin_activity.

  • stock_reservations.

Implement:

  1. CROSS-PLATFORM DESIGN CONSISTENCY

THIS SECTION IS MANDATORY.

Lovable and Antigravity must produce the same visual output.

To achieve this:

  1. Use the exact same technology stack.

11. Assumptions and Constraints

Page 43 of 45

11.1 PROJECT: SMX THRIFT / Universal Design-Locked E-Commerce Website Specification

IMPORTANT INSTRUCTION:

This project must generate the same website design, layout, visual identity, user experience and functionality regardless of whether it is developed using Lovable or Google Antigravity.

Treat this document as the SINGLE SOURCE OF TRUTH for the entire project.

Do not independently reinterpret the design.

Do not introduce different layouts, colours, typography, components or features.

Every development platform must follow the exact specifications below.

The final result must be visually and functionally consistent across Lovable and Antigravity.

Do not change the section order.

Default:

Brand: SMX THRIFT.

Location: Belagavi, Karnataka, India.

Do not generate alternative visual styles.

Do not change the brand identity between pages.

Do not introduce additional homepage sections.

Do not remove specified sections.

Do not replace the specified typography or colours.

Page 44 of 45

If a design detail is not explicitly specified, choose the most minimal option consistent with the established design system.

==================================================

  1. FINAL EXECUTION RULES

Both platforms must follow the same specification.

Do not independently redesign the application.

Do not create a simplified version.

Do not stop at the homepage.

Do not use fake backend operations.

12. Glossary

SMX THRIFT (SMX) — The brand name and short name of the premium online thrift and streetwear store based in Belagavi, Karnataka, India. Tagline: PRE-LOVED. RE-DEFINED.

Condition — The graded wear state assigned to a thrifted item. The four grades are Brand New, Like New, Good, and Pre-Loved.

Order Status — The lifecycle stage of an order, one of: New, Pending Confirmation, Confirmed, Processing, Shipped, Delivered, Cancelled.

Payment Status — The settlement state of an order's payment, one of: Unpaid, Payment Pending, Paid, Refunded.

Page 45 of 45
Live
Homepage design preview

Admin navigates to /admin

Invalid credentials

Retry login

Valid credentials

Review alerts

Open dashboard route

Review recent orders

Open orders

Open products

Open inventory

Open categories

Open settings

Logout

Confirm order

Update status

Update payment status

Cancel order

Contact customer

Track unseen orders

Review order details

Add product

Upload images

Set sizes and stock

Edit product

Change main image

Feature product

Delete product

Review reservations

Update WhatsApp number

Update delivery charges

Logout

Homepage: Open storefront

Admin Login: 1. Enter credentials

Admin Login: 2. Retry after invalid credentials

Dashboard: Review store metrics

Dashboard: Check low stock alerts

/admin/dashboard: Review revenue chart

/admin/dashboard: Check recent orders

Orders: View new order

Orders: Confirm order

Orders: Update order status

Orders: Update payment status

Orders: Cancel order

Orders: Contact customer via WhatsApp

/admin/orders: Track unseen orders

/admin/orders: Review order details

Products: Review product list

Add Product: Create new product

/admin/products/new: Upload product images

/admin/products/new: Set sizes and stock

Edit Product: Edit existing product

/admin/products/:id/edit: Change main image

/admin/products/:id/edit: Feature product

Edit Product: Delete product

Inventory: Check stock by size

/admin/inventory: Review stock reservations

/admin/categories: Manage categories

Settings: Update store settings

/admin/settings: Update WhatsApp number

/admin/settings: Update delivery charges

Logout: End admin session

Live
Homepage design preview

Admin navigates to /admin

Invalid credentials

Retry login

Valid credentials

Review alerts

Open dashboard route

Review recent orders

Open orders

Open products

Open inventory

Open categories

Open settings

Logout

Confirm order

Update status

Update payment status

Cancel order

Contact customer

Track unseen orders

Review order details

Add product

Upload images

Set sizes and stock

Edit product

Change main image

Feature product

Delete product

Review reservations

Update WhatsApp number

Update delivery charges

Logout

Homepage: Open storefront

Admin Login: 1. Enter credentials

Admin Login: 2. Retry after invalid credentials

Dashboard: Review store metrics

Dashboard: Check low stock alerts

/admin/dashboard: Review revenue chart

/admin/dashboard: Check recent orders

Orders: View new order

Orders: Confirm order

Orders: Update order status

Orders: Update payment status

Orders: Cancel order

Orders: Contact customer via WhatsApp

/admin/orders: Track unseen orders

/admin/orders: Review order details

Products: Review product list

Add Product: Create new product

/admin/products/new: Upload product images

/admin/products/new: Set sizes and stock

Edit Product: Edit existing product

/admin/products/:id/edit: Change main image

/admin/products/:id/edit: Feature product

Edit Product: Delete product

Inventory: Check stock by size

/admin/inventory: Review stock reservations

/admin/categories: Manage categories

Settings: Update store settings

/admin/settings: Update WhatsApp number

/admin/settings: Update delivery charges

Logout: End admin session