.product-category-banner {
    background-color: #0077ee; /* Customize background color */
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.product-category-banner h1 {
    font-size: 2em;
    color: #ffffff; /* Customize text color */
}

.product-category-description {
    margin-top: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/**********************************************************************/

/* Container for product categories grid */
.subcategories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Styling each product category box */
.product-cat-box {
    width: calc(20% - 20px); /* 20% width for 5 columns */
    box-sizing: border-box;
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

.product-cat-image img {
    width: 100%; /* Ensures the image fits horizontally */
    height: 150px; /* Fixed height for consistency */
    object-fit: cover; /* Crops the image while maintaining aspect ratio */
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 10px;
}

/* Title and product count styling */
.subcategory-title {
    font-size: 1.1em;
    margin: 10px 0 5px;
    color: #333;
    text-align: center;
}

.subcategory-count {
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-cat-box {
        width: calc(50% - 20px); /* Two columns on tablets */
    }
}

@media (max-width: 480px) {
    .product-cat-box {
        width: 100%; /* Full width on mobile */
    }
}
