/* --- Root Variables --- */
:root {
    --primary-color: #0d6efd; /* Bootstrap Blue */
    --text-dark: #333;
    --text-muted: #6c757d;
    --bg-light: #f9f9f9;
    --transition: all 0.3s ease;
}

/* --- General Styles --- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* --- Hero & Carousel Section --- */
/* Consolidating your .hero and #heroCarousel styles */
#heroCarousel .carousel-item {
    height: 550px; /* Slightly taller for more impact */
    background-color: #000; /* Fallback */
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7); /* Automatically darkens image for text contrast */
}

.carousel-caption {
    bottom: 25%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3); /* Lighter blur-style background */
    backdrop-filter: blur(5px); /* Modern frosted glass effect */
    padding: 2rem;
    border-radius: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* --- Sidebar Categories --- */
#sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 90px; /* Keeps sidebar visible while scrolling */
}

#sidebar .category-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

/* --- Product Cards --- */
.product-card {
    border: none; /* Remove harsh borders */
    border-radius: 12px;
    padding: 0; /* Let image fill top */
    background-color: #fff;
    margin-bottom: 24px;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-8px); /* Lift effect */
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.08); /* Zoom on hover */
}

.product-card-body {
    padding: 15px;
}

.product-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 5px;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a !important;
    color: #ddd;
    margin-top: 60px;
    font-size: 0.95rem;
}


/* --- Search Input Styles --- */
#search-input {
    display: none;
    width: 200px;
    transition: width 0.3s;
}
#search-input.show {
    display: inline-block;
}

/* --- Premium Utilities --- */
.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}
.icon-box i {
    transition: transform 0.3s ease;
}
.service-card:hover .icon-box i {
    transform: scale(1.1);
}

/* --- Floating Action Bar (WhatsApp & Call) --- */
.floating-bar {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 60px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
    z-index: 10000;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-bar:hover {
    transform: translateX(-50%) translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white !important;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-call {
    background-color: #0d6efd;
    color: white !important;
}

.btn-call:hover {
    background-color: #084298;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* Specific to mobile to avoid overlapping content */
@media (max-width: 768px) {
    .floating-bar {
        bottom: 20px;
        width: 92%;
        padding: 8px;
        justify-content: center;
        gap: 8px;
    }
    .floating-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}
@media (max-width: 480px) {
    .floating-btn span {
        display: none; /* Icons only on small phones */
    }
    .floating-btn {
        padding: 12px;
    }
    .floating-bar {
        width: auto;
    }
}

/* --- Category Chips (Flutter-style) --- */
.category-chips-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0 20px;
    scrollbar-width: none;
}

.category-chips-container::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex: 0 0 auto;
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-chip:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
}

.category-chip.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.category-count {
    font-size: 0.75rem;
    opacity: 0.8;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.category-chip.active .category-count {
    background: rgba(255,255,255,0.2);
}
