 /* Styling for non-fixed title bar */
        .top-bar {
            background-color: #f8f9fa;
            padding: 0.5rem 1rem;
            font-size: 14px;
            border-bottom: 1px solid #dee2e6;
        }

        .top-bar a {
            color: #FF324D; /* Updated to theme color */
            text-decoration: none;
        }

        .top-bar a:hover {
            text-decoration: none;
        }

        /* Styling for fixed navbar */
        .navbar {
            background-color: #fff;
            padding: 0.5rem 1rem; /* Reduced padding to minimize space */
            width: 100%;
            z-index: 1000;
            transition: top 0.3s ease;
        }

        .navbar-fixed {
            position: fixed;
            top: 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .navbar-brand img {
            height: 40px;
        }

        /* Navbar links */
        .navbar-nav .nav-link {
            color: #FF324D !important; /* Updated to theme color */
        }

        /* Cart number styling */
        .cart-icon .nav-link span {
            font-weight: bold; /* Make the cart number bold */
        }

        /* Search bar */
        .btn-outline-success {
            color: #fff;
            background-color: #FF324D;
            border-color: #FF324D;
        }

        .btn-outline-success:hover {
            background-color: #cc293d; /* Darken on hover */
            border-color: #cc293d;
        }

        .bi-cart-fill {
            font-size: 1.75rem; /* Adjust size as needed */
            color: #FF324D;
        }

        /* Responsive styles */
        @media (max-width: 300px) {
            .navbar-collapse {
                display: none; /* Hide collapsible menu on mobile */
            }

            .navbar-toggler {
                display: block; /* Show hamburger icon */
            }

            .search-bar {
                width: 100%; /* Full width for search bar */
                margin-top: 10px; /* Space above search bar */
            }

            .cart-icon {
                margin-left: auto; /* Align cart icon to the right */
            }
            
            .navbar-brand {
                margin: 0 auto; /* Center the logo */
                display: flex;
                justify-content: center;
                width: 100%;
            }

            .navbar-toggler {
                position: absolute;
                left: 0; /* Ensure the hamburger icon stays on the left */
            }
        }

        /* Mobile search bar */
        .search-bar input {
            border-radius: 0.25rem 0 0 0.25rem;
        }

        .search-bar .btn {
            border-radius: 0 0.25rem 0.25rem 0;
            background-color: #FF324D;
            border-color: #FF324D;
            padding: 0.5rem;
        }

        .search-bar .btn i {
            font-size: 1.25rem;
            color: white;
        }

        .cart_num {
            position: relative;
            top: -3px;
            left: 0;
            font-size: 11px;
            background-color: #FF324D;
            border-radius: 50px;
            height: 16px;
            line-height: 16px;
            color: white;
            min-width: 16px;
            text-align: center;
            padding: 0 5px;
            display: inline-block;
            vertical-align: top;
            margin-left: -5px;
            margin-right: -5px;
        }

        /* Hover effect for product cards */
        .card:hover {
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow on hover */
            transform: translateY(-5px); /* Slight lift on hover */
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        /* Smooth transition for hover effect */
        .card {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        /* Remove extra margin in the main container */
        .container {
            padding-top: 0; /* Remove top padding */
        }
        
        
        
        .card-title {
    line-height: 1;
}

.discounted-price {
    font-size: 1rem;
    font-weight: bold;
    color: #FF324D;
    line-height: 0.5;
}

.original-price {
    font-size: 1rem;
    color: #777;
    line-height: 0.5;
}

.discount-percentage {
    color: red;
    font-weight: bold;
}

.strike-through {
    text-decoration: line-through;
}

.review-rating {
    margin-bottom: 0.5rem; /* Add margin to separate from the button below */
}

.rating-button {
    background-color: #ffe6e6;
    color: #FF324D;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid #FF324D;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.review-count {
    color: #777;
    font-size: 0.9rem;
    white-space: nowrap;
}

.buy-now-button {
    background-color: #FF324D;
    color: white;
}

        .card-link {
    text-decoration: none; /* Remove underline from the link */
    color: inherit; /* Inherit text color from the card */
}

.card-link:hover {
    color: inherit; /* Maintain color on hover */
}
        
        /* Image placeholder styling */
/* Image placeholder styling */
.card-img-top {
    background-color: #f8f9fa; /* Light grey background as placeholder */
    height: 200px; /* Set a default height for the image container */
    width: 100%;
    object-fit: cover; /* Ensure the image covers the container */
    display: block; /* Ensure the image behaves like a block element */
}

/* Image wrapper to handle the relative positioning of spinner */
.image-wrapper {
    position: relative;
    height: 200px; /* Same as the image */
    width: 100%;
    overflow: hidden; /* Confine the spinner within this container */
}



/* Keyframes for smooth gradient loading animation */
@keyframes slowLoadingGradient {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0 0;
    }
}

/* Hide the spinner when the image has loaded */
.img-loaded .spinner-placeholder {
    display: none;
}



