:root {
    --blue: #0d6efd;
    --blue-hover: #0b5ed7;
    --yellow: #facc15;
    --green: #25d366;
    --red: #ef4444;
    --dark: #111827;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #1f2937;
    --nav-height: 65px;
    --header-height: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding-top: var(--header-height);
    padding-bottom: var(--nav-height);
    overflow-x: hidden;
    width: 100%;
}

/* Utils */
.container { padding: 0 1rem; width: 100%; max-width: 600px; margin: 0 auto; }
@media(min-width: 768px) { .container { max-width: 1000px; } }
.flex { display: flex; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.bg-blue { background-color: var(--blue); }
.bg-green { background-color: var(--green); }
.bg-red { background-color: var(--red); }
.bg-dark-footer { background-color: #171a21; }
.text-white { color: white; }
.text-blue { color: var(--blue); }
.text-yellow { color: var(--yellow); }
.text-gray-200 { color: var(--gray-200); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-4xl { font-size: 2.25rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.pt-1 { padding-top: 0.25rem; } .pt-2 { padding-top: 0.5rem; } .pt-3 { padding-top: 1rem; } .pt-4 { padding-top: 1.5rem; }
.pb-1 { padding-bottom: 0.25rem; } .pb-2 { padding-bottom: 0.5rem; } .pb-3 { padding-bottom: 1rem; } .pb-4 { padding-bottom: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-3 { padding-top: 1rem; padding-bottom: 1rem; } .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 1rem; padding-right: 1rem; } .px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-0 { padding: 0; } .p-1 { padding: 0.25rem; } .p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; }
.border-none { border: none; } .outline-none { outline: none; }
.border-b { border-bottom: 1px solid var(--gray-200); }
.border-t { border-top: 1px solid var(--gray-200); }
.border { border: 1px solid var(--gray-200); }
.border-gray-700 { border-color: #374151; }
.rounded-lg { border-radius: 0.5rem; } .rounded-xl { border-radius: 1rem; } .rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.relative { position: relative; }
.absolute { position: absolute; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.w-100 { width: 100%; } .w-60 { width: 60%; }
.w-1-3 { width: 30%; } .w-2-3 { width: 70%; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-16 { width: 4rem; } .h-16 { height: 4rem; }
.w-full { width: 100%; } .h-full { height: 100%; }
.h-24 { height: 6rem; }
.h-40 { height: 10rem; }
.max-w-sm { max-width: 24rem; }
.block { display: block; }
.inline-block { display: inline-block; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.object-cover { object-fit: cover; }
.object-top { object-position: top; }
.bg-transparent { background: transparent; }
.hover-text-blue:hover { color: var(--blue); }
.transition { transition: 0.2s; }
.cursor-pointer { cursor: pointer; }
.uppercase { text-transform: uppercase; }
.line-height-tight { line-height: 1.2; }
.z-10 { z-index: 10; }
.opacity-70 { opacity: 0.7; }
.italic { font-style: italic; }
.list-none { list-style: none; }
.text-decoration-none { text-decoration: none; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.line-height-relaxed { line-height: 1.625; }
.right-0 { right: 0; } .top-0 { top: 0; } .bottom-0 { bottom: 0; }
.right-2 { right: 0.5rem; } .top-2 { top: 0.5rem; }

.btn { cursor: pointer; transition: 0.2s; border: none; }
.btn:active { transform: scale(0.95); }

/* APP VIEWS */
.app-view { display: none; }
.app-view.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* HEADER */
.header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.logo-icon-row { display: flex; align-items: center; padding: 2px; }
.dot-h { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: none; z-index: 1; position: relative; }
.dot-h.bg-yellow { z-index: 2; margin-left: -5px; }
.dot-h.bg-red { z-index: 3; margin-left: -5px; background-color: #ff5252; }
.dot-h.bg-blue { background-color: #3b82f6; }
.brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1; color: var(--dark); letter-spacing: -0.5px; }
.brand-sub { color: #1e40af; font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px; margin-top: 1px; }
.action-icon { position: relative; font-size: 1.25rem; color: var(--gray-600); cursor: pointer; padding: 0.5rem; border-radius: 50%; }
.action-icon:hover { background: var(--gray-100); }
.badge { position: absolute; top: 2px; right: 2px; background: var(--red); color: white; font-size: 0.6rem; min-width: 14px; height: 14px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid white; }
.badge-dot { width: 10px; min-width: 10px; height: 10px; border-radius: 50%; }

/* HERO */
.hero { min-height: 400px; display: flex; align-items: center; margin-top: -1px; }
.hero-bg-slider, .hero-slide, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide { background-position: center; background-size: cover; opacity: 0; transition: opacity 1s; }
.hero-slide.active { opacity: 1; }
.hero-overlay { background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%); z-index: 2; }
.hero-content { z-index: 3; }
.hero-title { font-size: 2.2rem; line-height: 1.1; }
.tag-pill { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); padding: 0.2rem 0.6rem; border-radius: 20px; color: white; }
.hero-dots .dot { width: 8px; height: 8px; background: rgba(255,255,255,0.3); transition: 0.3s; }
.hero-dots .dot.active { width: 24px; border-radius: 4px; background: var(--blue); }

/* MARQUEE */
.marquee-wrapper { overflow: hidden; white-space: nowrap; width: 100%; }
.marquee-content { display: inline-flex; }
.trust-bar .marquee-content { animation: marquee 15s linear infinite; }
.categories-section .marquee-content { animation: marquee 25s linear infinite; }
.brand-marquee { animation: marquee 20s linear infinite; }
.review-marquee { animation: marquee 30s linear infinite; }
.review-card { width: 280px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; white-space: normal; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* CATEGORIES */
.cat-item { width: 70px; }
.cat-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-white); border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--gray-600); box-shadow: 0 2px 5px rgba(0,0,0,0.02); margin: 0 auto; transition: 0.2s; }
.cat-item:active .cat-icon { background: var(--gray-100); transform: scale(0.95); }

/* OFFERS */
.section-title { font-size: 1.25rem; font-weight: 800; color: var(--dark); }
.offer-img-circle { width: 160px; height: 160px; border-radius: 50%; background: white; overflow: hidden; transform: translate(30%, -10%); border: 4px solid var(--blue); box-shadow: -5px 5px 15px rgba(0,0,0,0.2); }
.offer-img-circle img { width: 100%; height: 100%; object-fit: cover; }

/* PRODUCT CARD */
.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.prod-card { background: white; border-radius: 12px; overflow: hidden; border: 1px solid var(--gray-200); display: flex; flex-direction: column; position: relative; }
.prod-img-wrap { width: 100%; aspect-ratio: 1; position: relative; background: #fff; padding: 1rem; }
.prod-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.stock-pill { position: absolute; bottom: 0.5rem; left: 0.5rem; background: white; font-size: 0.65rem; font-weight: 700; padding: 0.2rem 0.4rem; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); color: var(--gray-600); display: flex; align-items: center; gap: 4px; z-index: 2; }
.dot-green { width: 6px; height: 6px; background: var(--green); border-radius: 50%; display: inline-block; }
.heart-btn { position: absolute; top: 0.5rem; right: 0.5rem; background: rgba(255,255,255,0.8); border: none; width: 28px; height: 28px; border-radius: 50%; color: var(--gray-400); display: flex; align-items: center; justify-content: center; z-index: 2; cursor: pointer; }
.prod-info { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; }
.prod-info h4 { font-size: 0.85rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.prod-price { font-weight: 800; font-size: 1rem; color: var(--dark); }

/* Inline Add to Cart / Qty Control */
.btn-add-cart { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: white; border: none; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 1rem; box-shadow: 0 2px 5px rgba(37,211,102,0.3); }
.qty-control-inline { display: flex; align-items: center; background: var(--gray-100); border-radius: 20px; overflow: hidden; border: 1px solid var(--gray-200); }
.qty-control-inline button { background: none; border: none; width: 26px; height: 26px; font-weight: bold; color: var(--dark); cursor: pointer; }
.qty-control-inline button:active { background: var(--gray-200); }
.qty-control-inline span { font-size: 0.85rem; font-weight: 700; width: 20px; text-align: center; }

/* TESTIMONIALS */
.review-card { min-width: 260px; max-width: 260px; white-space: normal; }

/* FOOTER */
.social-circle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; }

/* WHATSAPP FLOAT */
.whatsapp-float { position: fixed; bottom: calc(var(--nav-height) + 15px); right: 15px; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; z-index: 99; transition: 0.2s; }

/* BOTTOM NAV */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: var(--nav-height); display: flex; justify-content: space-around; align-items: center; z-index: 100; padding-bottom: env(safe-area-inset-bottom); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--gray-400); font-size: 0.7rem; width: 60px; cursor: pointer; transition: 0.2s; }
.nav-item i { font-size: 1.2rem; }
.nav-item.active { color: var(--blue); }
.nav-item.active i { transform: translateY(-2px); }

@media(min-width: 768px) {
    .grid-2-col { grid-template-columns: repeat(4, 1fr); }
    .bottom-nav { display: none; }
    body { padding-bottom: 0; }
    .whatsapp-float { bottom: 30px; right: 30px; width: 60px; height: 60px; font-size: 2.2rem; }
}
