/* Start custom CSS for wp-widget-woocommerce_product_categories, class: .elementor-element-4cd5e86 *//* Container for the categories */
.widget_product_categories ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Multiple columns */
    gap: 20px; /* Space between the boxes */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Style for individual category boxes */
.widget_product_categories ul li {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; /* Ensure subcategories stay inside the box */
}

/* Hover effect */
.widget_product_categories ul li:hover {
    transform: translateY(-5px);
}

/* Subcategory styling */
.widget_product_categories ul ul.children {
    margin-top: 10px;
    padding-left: 15px;
    border-left: 2px solid #ddd;
    display: block; /* Ensure subcategories are treated as block elements */
}

/* Subcategory items */
.widget_product_categories ul ul.children li {
    margin: 5px 0;
    font-size: 0.9em;
    color: #777;
}

/* Links */
.widget_product_categories ul li a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.widget_product_categories ul li a:hover {
    color: #0066cc;
}

/* Subcategory links */
.widget_product_categories ul ul.children li a {
    color: #555;
    font-weight: normal;
}

.widget_product_categories ul ul.children li a:hover {
    color: #0066cc;
}/* End custom CSS */