:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --dark: #111827;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --whatsapp: #16a34a;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body, button, input, select, textarea {
    font-family: var(--font-sans);
}

body {
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.55;
    overflow-x: hidden;
}

h1, h2, h3, h4, .btn, .product-price {
    font-family: var(--font-heading);
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. TOP BAR */
.top-bar {
    background: var(--dark);
    color: #d1d5db;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.top-bar strong { color: var(--white); }
.top-links { display: flex; gap: 12px; align-items: center; }
.top-links a:hover { color: var(--white); }

/* 2. HEADER */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    min-height: 46px;
}

.brand-logo img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-placeholder-box {
    border: 1.5px dashed #9ca3af;
    padding: 6px 14px;
    border-radius: 6px;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}
.logo-placeholder-box span { font-family: var(--font-heading); font-weight: 700; font-size: 13px; }
.logo-placeholder-box small { font-size: 10px; color: var(--text-muted); }

/* SEARCH */
.search-box {
    flex: 1;
    max-width: 500px;
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.search-box:focus-within { border-color: var(--dark); }
.search-box input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}
.search-box button {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 0 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.search-box button:hover { background: var(--primary); }

.mobile-search-wrap { display: none; padding-bottom: 12px; }

/* ACTIONS */
.header-actions { display: flex; align-items: center; gap: 20px; }
.action-item { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.action-item i { font-size: 19px; color: var(--dark); }
.icon-badge { position: relative; }
.icon-badge .badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.action-text small { display: block; font-size: 11px; color: var(--text-muted); line-height: 1; }
.action-text strong { font-size: 14px; color: var(--dark); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
}

/* NAVBAR */
.navbar { background: var(--bg-light); border-top: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.nav-links { display: flex; list-style: none; gap: 26px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-main); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }
.bulk-quote-btn {
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.bulk-quote-btn:hover { text-decoration: underline; }

/* 3. CLEAN HERO */
.hero-section {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1600&q=85');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 60px 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.72);
}

.hero-container { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 600px; }
.hero-content h1 { font-size: 42px; line-height: 1.18; font-weight: 800; margin-bottom: 14px; }
.hero-content p { font-size: 16px; color: #e5e7eb; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }

/* SECTIONS */
.section { padding: 60px 0; }
.bg-light { background: var(--bg-light); }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 14px;
}
.section-header h2 { font-size: 26px; font-weight: 700; color: var(--dark); }
.view-all { font-size: 14px; font-weight: 600; color: var(--primary); }

/* 4. SIMPLE CATEGORIES */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
}
.cat-card:hover { border-color: var(--dark); }
.cat-card i { font-size: 22px; color: var(--primary); margin-bottom: 12px; display: block; }
.cat-card h3 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.cat-card p { font-size: 12px; color: var(--text-muted); }

/* 5. BRANDS */
.brands-section { padding: 45px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brands-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 22px;
}
.brands-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brand-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.brand-card:hover { border-color: var(--dark); }
.brand-logo-wrap { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.brand-logo-wrap img { max-width: 105px; max-height: 44px; object-fit: contain; }
.brand-fallback { font-size: 11px; font-weight: 700; color: var(--text-muted); border: 1px dashed #d1d5db; padding: 6px 10px; border-radius: 4px; }
.brand-name { font-size: 13px; font-weight: 600; color: var(--text-main); }

/* 6. CLEAN & REALISTIC PRODUCT CARDS */
.filter-tabs { display: flex; gap: 8px; }
.tab-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--white);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
}
.tab-btn.active, .tab-btn:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #9ca3af;
}

.product-img {
    position: relative;
    height: 210px;
    background: #f3f4f6;
    border-bottom: 1px solid var(--border);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dark);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-cart {
    flex: 1;
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.btn-cart:hover { background: var(--primary); }

.btn-whatsapp {
    width: 38px;
    height: 38px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: var(--whatsapp);
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.btn-whatsapp:hover { background: var(--whatsapp); color: var(--white); }

/* 7. SIMPLE SOLUTIONS */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 26px;
}
.sol-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}
.solution-card h3 { font-size: 20px; color: var(--dark); margin-bottom: 10px; }
.solution-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.sol-link { font-size: 14px; font-weight: 600; color: var(--dark); display: inline-flex; align-items: center; gap: 6px; }
.sol-link:hover { color: var(--primary); }

/* 8. FOOTER */
.main-footer { background: var(--dark); color: #d1d5db; padding-top: 55px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr; gap: 36px; padding-bottom: 45px; }
.footer-desc { margin: 14px 0; font-size: 14px; color: #9ca3af; }
.contact-list, .footer-links, .timings-list { list-style: none; }
.contact-list li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.contact-list i { color: var(--primary); margin-top: 4px; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 9px; font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.timings-list li { display: flex; justify-content: space-between; font-size: 13px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #1f2937; }
.newsletter-form { display: flex; margin-top: 12px; }
.newsletter-form input { flex: 1; padding: 10px 12px; border: none; border-radius: 6px 0 0 6px; outline: none; font-size: 14px; }
.newsletter-form button { background: var(--primary); color: var(--white); border: none; padding: 0 16px; font-weight: 600; font-size: 13px; border-radius: 0 6px 6px 0; cursor: pointer; }
.footer-bottom { border-top: 1px solid #1f2937; padding: 18px 0; font-size: 13px; color: #9ca3af; }
.bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.payment-badges { display: flex; gap: 10px; }

/* FLOATING WA & TOAST */
.float-wa {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 52px;
    height: 52px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    z-index: 999;
}
.toast {
    position: fixed;
    bottom: 22px;
    left: 22px;
    background: var(--dark);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
}
.toast.show { opacity: 1; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .category-grid, .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
    .top-msg { display: none; }
    .top-bar-inner { justify-content: center; }
    .header-inner .search-box { display: none; }
    .mobile-search-wrap { display: block; }
    .mobile-search { max-width: 100%; }
    .hide-mobile { display: none; }
    
    .nav-links { display: none; }
    .navbar { background: var(--white); border-top: none; }
    .nav-inner { padding-top: 0; justify-content: flex-end; }
    .navbar.open .nav-inner { flex-direction: column; align-items: stretch; }
    .navbar.open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px 0;
        border-top: 1px solid var(--border);
    }
    .mobile-menu-btn { display: grid; place-items: center; }
    
    .hero-section { min-height: 360px; padding: 45px 0; }
    .hero-content h1 { font-size: 32px; }
    .solutions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* MOBILE VIEW: 2-2 PRODUCTS SIDE-BY-SIDE */
@media (max-width: 600px) {
    .section { padding: 42px 0; }
    .section-header h2 { font-size: 22px; }
    .hero-content h1 { font-size: 26px; }
    
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-img { height: 135px; }
    .product-info { padding: 12px; }
    .p-brand { font-size: 11px; }
    .product-title { font-size: 13px; margin-bottom: 6px; }
    .product-price { font-size: 15px; margin-bottom: 10px; }
    .btn-cart { font-size: 12px; padding: 8px 6px; }
    .btn-whatsapp { width: 34px; height: 34px; font-size: 16px; }

    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* UPDATED: Zoom-Out & Vertical Image Friendly Product Box */
.product-img {
    position: relative;
    height: 260px;             
    background: #ffffff;       
    border-bottom: 1px solid var(--border);
    padding: 16px;             
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;  
    display: block;
}