<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kapda & Kala | Premium Custom Apparel & Corporate Gifting</title>
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght=300;400;500;600;700;800&family=Playfair+Display:ital,wght=0,600;0,700;1,400&display=swap" rel="stylesheet">
<!-- FontAwesome for Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
theme: {
extend: {
colors: {
brand: {
navy: '#0F172A',
orange: '#EA580C',
cream: '#FDFBF7',
softGray: '#F1F5F9'
}
},
fontFamily: {
sans: ['"Plus Jakarta Sans"', 'sans-serif'],
serif: ['"Playfair Display"', 'serif'],
}
}
}
}
</script>
<style>
html { scroll-behavior: smooth; }
.product-card:hover .product-image { transform: scale(1.05); }
.cart-open { transform: translateX(0) !important; }
</style>
</head>
<body class="bg-brand-cream font-sans text-slate-800 antialiased overflow-x-hidden">
<!-- Announcement Bar -->
<div class="bg-brand-navy text-white text-center py-2 px-4 text-xs md:text-sm font-medium tracking-wide">
✨ Get customized premium merchandise with your company logo! <span class="text-orange-400">Low MOQ available</span>
</div>
<!-- Navigation -->
<header class="sticky top-0 z-40 bg-brand-cream/80 backdrop-blur-md border-b border-slate-100">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-20 flex items-center justify-between">
<div class="flex items-center gap-3">
<span class="font-serif text-2xl md:text-3xl font-bold tracking-tight text-brand-navy">
Kapda <span class="text-brand-orange">&</span> Kala
</span>
</div>
<nav class="hidden md:flex items-center gap-8 font-medium text-sm text-slate-600">
<a href="#home" class="hover:text-brand-orange transition-colors">Home</a>
<a href="#products" class="hover:text-brand-orange transition-colors">Products</a>
<a href="#craft" class="hover:text-brand-orange transition-colors">Our Craft</a>
<a href="#contact" class="hover:text-brand-orange transition-colors">Bulk Query</a>
</nav>
<div class="flex items-center gap-4">
<button onclick="toggleCart()" class="relative p-2.5 text-brand-navy hover:text-brand-orange transition-colors bg-white rounded-full shadow-sm border border-slate-100">
<i class="fa-solid fa-bag-shopping text-lg"></i>
<span id="cart-count" class="absolute -top-1 -right-1 bg-brand-orange text-white text-xs font-bold w-5 h-5 rounded-full flex items-center justify-center">0</span>
</button>
<a href="https://wa.me/919999999999" target="_blank" class="hidden sm:inline-flex items-center gap-2 bg-emerald-600 text-white px-5 py-2.5 rounded-full text-sm font-semibold hover:bg-emerald-700 transition-all shadow-md shadow-emerald-100">
<i class="fa-brands fa-whatsapp text-base"></i> WhatsApp Us
</a>
</div>
</div>
</header>
<!-- Hero Section -->
<section id="home" class="relative overflow-hidden pt-8 pb-16 md:py-24">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 lg:grid-cols-12 gap-12 items-center">
<div class="lg:col-span-5 space-y-6 text-center lg:text-left">
<span class="inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-orange-50 text-brand-orange text-xs font-semibold uppercase tracking-wider">
<span class="w-1.5 h-1.5 rounded-full bg-brand-orange animate-pulse"></span> Premium Corporate Gifting
</span>
<h1 class="text-4xl sm:text-5xl lg:text-6xl font-serif font-bold text-brand-navy leading-tight">
Art Meets <br class="hidden lg:block">
<span class="text-transparent bg-clip-text bg-gradient-to-r from-brand-orange to-amber-600">Premium Fabrics</span>
</h1>
<p class="text-base sm:text-lg text-slate-600 leading-relaxed max-w-xl mx-auto lg:mx-0">
Create custom polo t-shirts, customized caps, and bespoke corporate kits branded with your company's identity. Crafting artistic, durable, and comfortable apparel for modern teams.
</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center lg:justify-start">
<a href="#products" class="bg-brand-navy text-white px-8 py-4 rounded-xl font-bold hover:bg-slate-800 transition-all text-center shadow-lg shadow-slate-200">
Explore Catalog
</a>
<a href="#contact" class="bg-white text-brand-navy border border-slate-200 px-8 py-4 rounded-xl font-bold hover:bg-slate-50 transition-all text-center">
Get Quote
</a>
</div>
</div>
<!-- Hero Image Grid -->
<div class="lg:col-span-7 grid grid-cols-12 gap-4 items-center">
<div class="col-span-6 space-y-4">
<div class="rounded-2xl overflow-hidden shadow-2xl shadow-slate-100 border-4 border-white transform -rotate-2 hover:rotate-0 transition-transform duration-300">
<img src="1000606409.png" alt="Peace T-Shirt" class="w-full object-cover">
</div>
<div class="rounded-2xl overflow-hidden shadow-2xl shadow-slate-100 border-4 border-white transform rotate-2 hover:rotate-0 transition-transform duration-300">
<img src="1000606425.png" alt="Premium Cap Navy" class="w-full object-cover">
</div>
</div>
<div class="col-span-6">
<div class="rounded-2xl overflow-hidden shadow-2xl shadow-slate-100 border-4 border-white transform rotate-1 hover:rotate-0 transition-transform duration-300">
<img src="1000606421.png" alt="Corporate kit" class="w-full object-cover">
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Filters & Products Section -->
<section id="products" class="py-16 bg-white border-t border-slate-100">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center max-w-3xl mx-auto mb-12">
<h2 class="text-3xl md:text-4xl font-serif font-bold text-brand-navy">Premium Custom Merch Catalog</h2>
<p class="text-slate-500 mt-2">Filter and choose from our premium quality collection to start customization.</p>
<!-- Category Filter Buttons -->
<div class="flex flex-wrap justify-center gap-3 mt-8">
<button onclick="filterCategory('all')" class="filter-btn active bg-brand-navy text-white px-5 py-2.5 rounded-full text-sm font-semibold shadow-md transition-all">All Products</button>
<button onclick="filterCategory('tshirt')" class="filter-btn bg-brand-softGray text-slate-600 px-5 py-2.5 rounded-full text-sm font-semibold hover:bg-slate-200 transition-all">Custom T-shirts</button>
<button onclick="filterCategory('cap')" class="filter-btn bg-brand-softGray text-slate-600 px-5 py-2.5 rounded-full text-sm font-semibold hover:bg-slate-200 transition-all">Premium Caps</button>
<button onclick="filterCategory('kit')" class="filter-btn bg-brand-softGray text-slate-600 px-5 py-2.5 rounded-full text-sm font-semibold hover:bg-slate-200 transition-all">Corporate Gifting</button>
</div>
</div>
<!-- Product Grid -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8" id="product-grid">
<!-- Product 1 -->
<div class="product-card bg-brand-cream rounded-3xl overflow-hidden border border-slate-100 shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col justify-between" data-category="tshirt">
<div class="relative overflow-hidden bg-white">
<img src="1000606409.png" alt="Ivory Peace T-shirt" class="product-image w-full h-80 object-cover transition-transform duration-500">
<span class="absolute top-4 left-4 bg-emerald-500 text-white text-[10px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">Premium Cotton</span>
</div>
<div class="p-6 flex-grow flex flex-col justify-between">
<div>
<h3 class="font-bold text-lg text-brand-navy">Peace Ivory T-Shirt</h3>
<p class="text-xs text-slate-500 mt-1">Super soft, organic linen texture combed-cotton comfort.</p>
</div>
<div class="mt-6 flex items-center justify-between">
<div>
<span class="text-xs text-slate-400 block">Min. Order MOQ: 20 pcs</span>
<span class="text-lg font-bold text-brand-orange">Quote on Request</span>
</div>
<button onclick="addToCart('Peace Ivory T-Shirt', '1000606409.png')" class="bg-brand-navy hover:bg-brand-orange text-white p-3 rounded-xl transition-all shadow-md shadow-slate-100">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
</div>
<!-- Product 2 -->
<div class="product-card bg-brand-cream rounded-3xl overflow-hidden border border-slate-100 shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col justify-between" data-category="cap">
<div class="relative overflow-hidden bg-white">
<img src="1000606425.png" alt="Premium Navy Blue Cap" class="product-image w-full h-80 object-cover transition-transform duration-500">
<span class="absolute top-4 left-4 bg-brand-orange text-white text-[10px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">3D Embroidery Ready</span>
</div>
<div class="p-6 flex-grow flex flex-col justify-between">
<div>
<h3 class="font-bold text-lg text-brand-navy">Premium Custom Cap</h3>
<p class="text-xs text-slate-500 mt-1">Heavy-brushed cotton twill fabric with structured front panel.</p>
</div>
<div class="mt-6 flex items-center justify-between">
<div>
<span class="text-xs text-slate-400 block">Min. Order MOQ: 50 pcs</span>
<span class="text-lg font-bold text-brand-orange">Quote on Request</span>
</div>
<button onclick="addToCart('Premium Custom Cap', '1000606425.png')" class="bg-brand-navy hover:bg-brand-orange text-white p-3 rounded-xl transition-all">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
</div>
<!-- Product 3 -->
<div class="product-card bg-brand-cream rounded-3xl overflow-hidden border border-slate-100 shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col justify-between" data-category="tshirt">
<div class="relative overflow-hidden bg-white">
<img src="1000606411.png" alt="Blue Mandala T-Shirt" class="product-image w-full h-80 object-cover transition-transform duration-500">
<span class="absolute top-4 left-4 bg-indigo-600 text-white text-[10px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">Artsy Design</span>
</div>
<div class="p-6 flex-grow flex flex-col justify-between">
<div>
<h3 class="font-bold text-lg text-brand-navy">Blue Mandala T-Shirt</h3>
<p class="text-xs text-slate-500 mt-1">Intricate mandala screen print over premium Indigo washed base.</p>
</div>
<div class="mt-6 flex items-center justify-between">
<div>
<span class="text-xs text-slate-400 block">Min. Order MOQ: 20 pcs</span>
<span class="text-lg font-bold text-brand-orange">Quote on Request</span>
</div>
<button onclick="addToCart('Blue Mandala T-Shirt', '1000606411.png')" class="bg-brand-navy hover:bg-brand-orange text-white p-3 rounded-xl transition-all">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
</div>
<!-- Product 4 -->
<div class="product-card bg-brand-cream rounded-3xl overflow-hidden border border-slate-100 shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col justify-between" data-category="kit">
<div class="relative overflow-hidden bg-white">
<img src="1000606421.png" alt="Corporate kit bundle" class="product-image w-full h-80 object-cover transition-transform duration-500">
<span class="absolute top-4 left-4 bg-purple-600 text-white text-[10px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">Corporate Kit</span>
</div>
<div class="p-6 flex-grow flex flex-col justify-between">
<div>
<h3 class="font-bold text-lg text-brand-navy">Elite Gifting Kit</h3>
<p class="text-xs text-slate-500 mt-1">Includes custom branded Mug, Notebook, Pens, and Canvas Tote Bag.</p>
</div>
<div class="mt-6 flex items-center justify-between">
<div>
<span class="text-xs text-slate-400 block">Min. Order MOQ: 15 kits</span>
<span class="text-lg font-bold text-brand-orange">Quote on Request</span>
</div>
<button onclick="addToCart('Elite Gifting Kit', '1000606421.png')" class="bg-brand-navy hover:bg-brand-orange text-white p-3 rounded-xl transition-all">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
</div>
<!-- Product 5 -->
<div class="product-card bg-brand-cream rounded-3xl overflow-hidden border border-slate-100 shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col justify-between" data-category="tshirt">
<div class="relative overflow-hidden bg-white">
<img src="1000606423.png" alt="Sports Polyester Jersey" class="product-image w-full h-80 object-cover transition-transform duration-500">
<span class="absolute top-4 left-4 bg-sky-500 text-white text-[10px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">Dry-Fit Sportswear</span>
</div>
<div class="p-6 flex-grow flex flex-col justify-between">
<div>
<h3 class="font-bold text-lg text-brand-navy">Dry-Fit Sports Polo</h3>
<p class="text-xs text-slate-500 mt-1">Lightweight, breathable dry-fit polyester ideal for corporate marathons.</p>
</div>
<div class="mt-6 flex items-center justify-between">
<div>
<span class="text-xs text-slate-400 block">Min. Order MOQ: 30 pcs</span>
<span class="text-lg font-bold text-brand-orange">Quote on Request</span>
</div>
<button onclick="addToCart('Dry-Fit Sports Polo', '1000606423.png')" class="bg-brand-navy hover:bg-brand-orange text-white p-3 rounded-xl transition-all">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
</div>
<!-- Product 6 -->
<div class="product-card bg-brand-cream rounded-3xl overflow-hidden border border-slate-100 shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col justify-between" data-category="tshirt">
<div class="relative overflow-hidden bg-white">
<img src="1000606415.png" alt="Navy Polo Folded" class="product-image w-full h-80 object-cover transition-transform duration-500">
<span class="absolute top-4 left-4 bg-blue-700 text-white text-[10px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">Premium Polo</span>
</div>
<div class="p-6 flex-grow flex flex-col justify-between">
<div>
<h3 class="font-bold text-lg text-brand-navy">Classic Blue Polo</h3>
<p class="text-xs text-slate-500 mt-1">Pure cotton matty knit polo with premium double-stitch cuffs.</p>
</div>
<div class="mt-6 flex items-center justify-between">
<div>
<span class="text-xs text-slate-400 block">Min. Order MOQ: 25 pcs</span>
<span class="text-lg font-bold text-brand-orange">Quote on Request</span>
</div>
<button onclick="addToCart('Classic Blue Polo', '1000606415.png')" class="bg-brand-navy hover:bg-brand-orange text-white p-3 rounded-xl transition-all">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
</div>
<!-- Product 7 -->
<div class="product-card bg-brand-cream rounded-3xl overflow-hidden border border-slate-100 shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col justify-between" data-category="tshirt">
<div class="relative overflow-hidden bg-white">
<img src="1000601563.jpg" alt="White Mandala T-Shirt" class="product-image w-full h-80 object-cover transition-transform duration-500">
<span class="absolute top-4 left-4 bg-emerald-500 text-white text-[10px] font-bold px-3 py-1 rounded-full uppercase tracking-wider">100% Bio-Washed</span>
</div>
<div class="p-6 flex-grow flex flex-col justify-between">
<div>
<h3 class="font-bold text-lg text-brand-navy">Sandal Mandala T-Shirt</h3>
<p class="text-xs text-slate-500 mt-1">Stunning multicolor mandala centered on breathable heavy organic white fabric.</p>
</div>
<div class="mt-6 flex items-center justify-between">
<div>
<span class="text-xs text-slate-400 block">Min. Order MOQ: 20 pcs</span>
<span class="text-lg font-bold text-brand-orange">Quote on Request</span>
</div>
<button onclick="addToCart('Sandal Mandala T-Shirt', '1000601563.jpg')" class="bg-brand-navy hover:bg-brand-orange text-white p-3 rounded-xl transition-all">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Craftsmanship Section (How We Make It) -->
<section id="craft" class="py-20 bg-brand-cream border-t border-slate-100">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
<div class="space-y-6">
<span class="text-brand-orange font-bold text-xs uppercase tracking-wider">Our Printing Process</span>
<h2 class="text-3xl md:text-4xl font-serif font-bold text-brand-navy leading-tight">State-Of-The-Art Heat Press Customization</h2>
<p class="text-slate-600 leading-relaxed">
We use professional dual-plate heat press machinery operating at precise temperatures <strong class="text-brand-navy">🚀 180°C</strong> to fuse specialized artworks into the fabric matrix.
</p>
<p class="text-slate-600 leading-relaxed">
This guarantees that your high-definition brand logos don't fade, crack or peel away - even after countless washes. Durable inks meet soft touch aesthetics.
</p>
<div class="grid grid-cols-2 gap-6 pt-4">
<div class="border-l-4 border-brand-orange pl-4">
<h4 class="font-bold text-xl text-brand-navy">High Temp Base</h4>
<p class="text-xs text-slate-500 mt-1">Precise 180°C curing process</p>
</div>
<div class="border-l-4 border-brand-orange pl-4">
<h4 class="font-bold text-xl text-brand-navy">No Logo Cracks</h4>
<p class="text-xs text-slate-500 mt-1">Premium stretchable PU vinyl</p>
</div>
</div>
</div>
<div class="relative">
<div class="rounded-3xl overflow-hidden shadow-2xl shadow-slate-200 border-8 border-white">
<img src="1000601562.jpg" alt="Our Heat Press Curing Machine Process" class="w-full object-cover">
</div>
</div>
</div>
</div>
</section>
<!-- Contact & Bulk Quote Section -->
<section id="contact" class="py-20 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="bg-brand-navy text-white rounded-[40px] overflow-hidden shadow-2xl p-8 md:p-16 relative">
<!-- Decorative Circle -->
<div class="absolute -right-24 -bottom-24 w-80 h-80 rounded-full bg-brand-orange/10 blur-3xl"></div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12 relative z-10 items-center">
<div>
<h2 class="text-3xl md:text-5xl font-serif font-bold leading-tight">Got a bulk <br>custom project?</h2>
<p class="text-slate-300 mt-4 leading-relaxed">
Fill up your dynamic checkout cart or shoot us a quick query. Our branding experts will guide you to choose right fabric blend, fitting patterns, and MOQ solutions for your team logo.
</p>
<div class="mt-8 space-y-4 text-sm">
<div class="flex items-center gap-3 text-slate-300">
<i class="fa-solid fa-location-dot text-brand-orange"></i>
<span>Ghaziabad, Uttar Pradesh, India</span>
</div>
<div class="flex items-center gap-3 text-slate-300">
<i class="fa-solid fa-envelope text-brand-orange"></i>
<span>hello@kapdaandkala.com</span>
</div>
</div>
</div>
<form onsubmit="handleQuerySubmit(event)" class="bg-white/5 backdrop-blur-md p-6 sm:p-8 rounded-3xl border border-white/10 space-y-4">
<h3 class="text-xl font-bold text-white mb-2">Instant Custom Query</h3>
<div>
<label class="block text-xs font-semibold text-slate-300 uppercase mb-2">Company Name</label>
<input type="text" id="query-company" required class="w-full bg-white/10 border border-white/10 rounded-xl px-4 py-3 text-sm text-white focus:outline-none focus:border-brand-orange transition-colors" placeholder="e.g. Acme Corp">
</div>
<div>
<label class="block text-xs font-semibold text-slate-300 uppercase mb-2">Fabric Choice</label>
<select id="query-fabric" class="w-full bg-slate-800 border border-white/10 rounded-xl px-4 py-3 text-sm text-slate-300 focus:outline-none focus:border-brand-orange transition-colors">
<option value="Matty Premium Cotton">Matty Premium Cotton (For Polos)</option>
<option value="Super soft combed Cotton">Organic Combed Cotton (Round neck)</option>
<option value="Dry-fit sports fabric">Dry-Fit Lightweight Fabric</option>
<option value="Premium Cap Twill">Cap Heavy Twill Cotton</option>
</select>
</div>
<div>
<label class="block text-xs font-semibold text-slate-300 uppercase mb-2">Estimated Quantity</label>
<input type="number" id="query-qty" required min="10" class="w-full bg-white/10 border border-white/10 rounded-xl px-4 py-3 text-sm text-white focus:outline-none focus:border-brand-orange transition-colors" placeholder="Minimum 15 units">
</div>
<button type="submit" class="w-full bg-brand-orange hover:bg-orange-600 text-white font-bold py-3.5 rounded-xl transition-all shadow-lg shadow-orange-900/30">
Send Inquiry on WhatsApp
</button>
</form>
</div>
</div>
</div>
</section>
<!-- Slide-over Shopping Cart Sidebar -->
<div id="cart-sidebar" class="fixed inset-y-0 right-0 z-50 w-full max-w-md bg-white shadow-2xl border-l border-slate-100 transform translate-x-full transition-transform duration-300 ease-in-out flex flex-col justify-between">
<div class="p-6 border-b border-slate-100 flex items-center justify-between">
<div class="flex items-center gap-2">
<i class="fa-solid fa-bag-shopping text-brand-orange text-lg"></i>
<h3 class="font-bold text-lg text-brand-navy">Your Selected Merch</h3>
</div>
<button onclick="toggleCart()" class="text-slate-400 hover:text-slate-600 p-2"><i class="fa-solid fa-xmark text-xl"></i></button>
</div>
<div class="p-6 overflow-y-auto flex-grow space-y-4" id="cart-items">
<!-- Dynamic Cart Items go here -->
<div class="text-center py-12 text-slate-400" id="empty-cart-message">
<i class="fa-solid fa-folder-open text-4xl mb-3 block"></i>
Your customization drawer is empty.
</div>
</div>
<div class="p-6 border-t border-slate-100 bg-brand-cream space-y-4">
<div class="flex justify-between items-center">
<span class="text-sm text-slate-500 font-medium">Est. Setup MOQ Pricing</span>
<span class="text-lg font-bold text-brand-navy">Quote Pending</span>
</div>
<button onclick="checkoutToWhatsApp()" class="w-full bg-emerald-600 hover:bg-emerald-700 text-white font-bold py-4 rounded-2xl transition-all shadow-lg shadow-emerald-100 flex items-center justify-center gap-3">
<i class="fa-brands fa-whatsapp text-lg"></i> Confirm Bulk Order on WhatsApp
</button>
</div>
</div>
<!-- Footer -->
<footer class="bg-brand-navy text-white/50 text-xs py-12 border-t border-white/5">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex flex-col sm:flex-row justify-between items-center gap-6">
<span class="font-serif text-lg font-bold text-white">Kapda <span class="text-brand-orange">&</span> Kala</span>
<p>© 2026 Kapda & Kala. All Rights Reserved. Crafted for premium corporate merchandising.</p>
</div>
</footer>
<!-- Cart and Filtering Logic -->
<script>
let cart = [];
function toggleCart() {
document.getElementById('cart-sidebar').classList.toggle('cart-open');
}
function filterCategory(category) {
// Update active state in buttons
const buttons = document.querySelectorAll('.filter-btn');
buttons.forEach(btn => btn.classList.remove('active', 'bg-brand-navy', 'text-white'));
buttons.forEach(btn => btn.classList.add('bg-brand-softGray', 'text-slate-600'));
const activeBtn = event.currentTarget;
activeBtn.classList.remove('bg-brand-softGray', 'text-slate-600');
activeBtn.classList.add('active', 'bg-brand-navy', 'text-white');
// Hide/Show cards
const cards = document.querySelectorAll('.product-card');
cards.forEach(card => {
if (category === 'all' || card.getAttribute('data-category') === category) {
card.style.display = 'flex';
} else {
card.style.display = 'none';
}
});
}
function addToCart(name, imageUrl) {
const existsIndex = cart.findIndex(item => item.name === name);
if (existsIndex > -1) {
cart[existsIndex].qty += 1;
} else {
cart.push({ name, image: imageUrl, qty: 1 });
}
renderCart();
// Auto Open Sidebar
document.getElementById('cart-sidebar').classList.add('cart-open');
}
function updateQty(index, offset) {
cart[index].qty += offset;
if (cart[index].qty <= 0) {
cart.splice(index, 1);
}
renderCart();
}
function renderCart() {
const cartItemsContainer = document.getElementById('cart-items');
const cartCountElement = document.getElementById('cart-count');
const emptyMessage = document.getElementById('empty-cart-message');
cartItemsContainer.innerHTML = '';
let totalQty = 0;
if (cart.length === 0) {
emptyMessage.style.display = 'block';
cartItemsContainer.appendChild(emptyMessage);
cartCountElement.innerText = 0;
return;
} else {
emptyMessage.style.display = 'none';
}
cart.forEach((item, index) => {
totalQty += item.qty;
const itemEl = document.createElement('div');
itemEl.className = 'flex items-center gap-4 bg-brand-cream p-4 rounded-2xl border border-slate-100 shadow-sm';
itemEl.innerHTML = `
<img src="${item.image}" alt="${item.name}" class="w-16 h-16 rounded-xl object-cover bg-white">
<div class="flex-grow">
<h4 class="font-bold text-sm text-brand-navy">${item.name}</h4>
<span class="text-xs text-brand-orange font-semibold">Custom Branding</span>
<div class="flex items-center gap-3 mt-2">
<button onclick="updateQty(${index}, -1)" class="w-6 h-6 bg-white border border-slate-200 rounded-md hover:bg-slate-50 transition-colors flex items-center justify-center font-bold text-sm">-</button>
<span class="text-sm font-bold text-brand-navy">${item.qty}</span>
<button onclick="updateQty(${index}, 1)" class="w-6 h-6 bg-white border border-slate-200 rounded-md hover:bg-slate-50 transition-colors flex items-center justify-center font-bold text-sm">+</button>
</div>
</div>
`;
cartItemsContainer.appendChild(itemEl);
});
cartCountElement.innerText = totalQty;
}
function checkoutToWhatsApp() {
if (cart.length === 0) {
alert('Aapka cart khali hai. Please pehle list mein custom products add karein.');
return;
}
let message = "Hello Kapda & Kala Team!\n\nI want to get custom branding quote on following products:\n";
cart.forEach((item, i) => {
message += `${i + 1}. ${item.name} (Estimated sets/MOQ multiplier: ${item.qty})\n`;
});
message += "\nPlease share fabric options and details.";
const encodedText = encodeURIComponent(message);
window.open(`https://wa.me/919999999999?text=${encodedText}`, '_blank');
}
function handleQuerySubmit(event) {
event.preventDefault();
const company = document.getElementById('query-company').value;
const fabric = document.getElementById('query-fabric').value;
const qty = document.getElementById('query-qty').value;
const text = `Hello Kapda & Kala!\n\nWe would like to get custom quote for:\n🏢 Company: ${company}\n🧵 Fabric Choice: ${fabric}\n📦 Estimated Quantity: ${qty} units.\n\nPlease share catalog pricing with us!`;
window.open(`https://wa.me/919999999999?text=${encodeURIComponent(text)}`, '_blank');
}
</script>
</body>
</html>