/**
 * WooCommerce Category List Displayer Stylesheet
 * Version: 1.0.0
 *
 * This stylesheet provides the styling for the list generated
 * by the [wc_category_list] shortcode.
 */

/*
 * Main container for the list.
 * You can add a border, background, or padding here to frame the entire list.
 */
.wc-category-list-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 10px;

}

/*
 * The unordered list (<ul>) element.
 * We remove the default browser list styles (bullets) and padding.
 */
.wc-category-list-container ul {
    list-style-type: none; /* Removes the default bullet points */
    padding-left: 0;
    margin: 0;
}

/*
 * Add indentation for nested lists (sub-categories).
 * This targets any <ul> that is inside a <li>.
 */

.wc-category-list-container.hierarchical-list ul ul {
    margin-left: 20px; /* Adjust this value to control the indentation */
    margin-top: 8px; /* Adds some space above the nested list */
}

/*
 * Individual list items (<li>).
 * We add some space below each item to prevent them from looking cramped.
 */
.wc-category-list-container li {
    padding: 8px 0; /* Adds 8px of padding on the top and bottom */
    border-bottom: 1px solid #eee; /* Adds a separator line between items */
}

/*
 * Style the last list item differently to remove the bottom border.
 */
.wc-category-list-container li:last-child {
    border-bottom: none;
}

/*
 * The category links (<a>) themselves.
 * This is where you can style the text color, size, and hover effects.
 */
.wc-category-list-container li a {
    text-decoration: none; /* Removes the default underline from links */
    color: #333; /* A dark grey color for the text */
    font-size: 1em;
    font-weight: 500;
    transition: color 0.2s ease-in-out; /* A smooth transition for the hover effect */
}

/*
 * The hover state for the links.
 * This rule applies when a user moves