:root {
    --primary-color: #0369A1; /* Ocean Tech Blue */
    --primary-dark: #075985;
    --primary-light: #E0F2FE;
    --secondary-color: #E63946; /* Vibrant Coral Red */
    --secondary-hover: #D62828;
    --dark-slate: #0B1120;
    --light-slate: #1E293B;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-color: #334155;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: #F8FAFC;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--dark-slate);
    font-weight: 700;
    letter-spacing: -0.025em;
}

img {
    max-width: 100%;
    height: auto;
}

/* Color Utilities */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

/* Navbar */
.navbar-custom {
    background: linear-gradient(135deg, #0B1120 0%, #0369A1 100%);
    padding: 0.9rem 0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}
.navbar-custom .navbar-brand {
    font-family: 'Outfit', sans-serif;
    color: var(--white) !important;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.navbar-custom .nav-link {
    color: #E2E8F0 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.navbar-custom .nav-link:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Modern Buttons */
.btn-primary-custom {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}
.btn-primary-custom:hover {
    background-color: var(--secondary-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 22px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0B1120 0%, #1E293B 45%, #0369A1 100%);
    color: var(--white);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(3, 105, 161, 0.35) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section h1 {
    color: var(--white) !important;
    font-size: 3rem;
    font-weight: 800;
}

/* Floating Stats Bar */
.stats-bar-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.1);
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease;
}
.stats-bar-card:hover {
    transform: translateY(-2px);
}
@media (max-width: 767px) {
    .stats-bar-section {
        margin-top: 20px !important;
    }
}

/* 6 Products per Row Grid (High-Density E-commerce Layout) */
@media (min-width: 1200px) {
    .row-cols-xl-6 > * {
        flex: 0 0 auto;
        width: 16.66666667%;
        max-width: 16.66666667%;
    }
}

.product-grid-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    width: 100%;
}
.product-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.12) !important;
    border-color: #CBD5E1;
}

.product-img-box {
    position: relative;
    width: 100%;
    height: 145px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    border-bottom: 1px solid #F1F5F9;
    flex-shrink: 0;
}
.product-img-box img {
    max-height: 130px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
.product-grid-card:hover .product-img-box img {
    transform: scale(1.06);
}

.product-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.3rem;
    color: var(--dark-slate);
    margin-bottom: 4px;
}

.product-price-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Category Filter Pills */
.category-pill-btn {
    border-radius: 50px;
    padding: 7px 16px;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.category-pill-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.category-pill-btn.active {
    background: var(--primary-color);
    color: var(--white) !important;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.25);
}

/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #CBD5E1;
}
.image-hover-wrapper {
    overflow: hidden;
    height: 190px;
}
.image-hover-wrapper img {
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-card:hover .image-hover-wrapper img {
    transform: scale(1.08);
}

/* Section Spacing Standard */
.section-padding {
    padding: 75px 0;
}

/* Footer */
.footer-custom {
    background-color: #0B1120;
    color: #94A3B8;
    padding: 65px 0 25px;
}
.footer-custom h5 {
    color: var(--white);
    font-weight: 700;
}
.footer-custom a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-custom a:hover {
    color: var(--white);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    width: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    z-index: 1040;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.mobile-bottom-nav .nav-item {
    color: #8c98a4;
    text-decoration: none;
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.mobile-bottom-nav .nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Colorful Icons by Default */
.mobile-bottom-nav .nav-item:nth-child(1) i { color: #007bff; } /* Blue Home */
.mobile-bottom-nav .nav-item:nth-child(2) i { color: #6f42c1; } /* Purple Services */
.mobile-bottom-nav .nav-item:nth-child(3) i { color: #fd7e14; } /* Orange Store */
.mobile-bottom-nav .nav-item:nth-child(4) i { color: #28a745; } /* Green Book */

.mobile-bottom-nav .nav-item.active {
    color: #333;
    font-weight: 800;
}
.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-4px);
    font-size: 1.6rem;
}
.mobile-bottom-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.mobile-bottom-nav .nav-item:nth-child(1).active::after { background: #007bff; }
.mobile-bottom-nav .nav-item:nth-child(2).active::after { background: #6f42c1; }
.mobile-bottom-nav .nav-item:nth-child(3).active::after { background: #fd7e14; }
.mobile-bottom-nav .nav-item:nth-child(4).active::after { background: #28a745; }

@media (max-width: 767.98px) {
    body {
        padding-bottom: 90px; /* Prevent content hiding behind bottom nav */
    }
    .whatsapp-float {
        bottom: 110px; /* Push above floating bottom nav */
    }
    .admin-sidebar {
        min-height: auto;
    }
}
