/* --- 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;
}

footer a:hover {
    color: var(--primary-color) !important;
}