/* All Categories CSS */

.category-dropdown {
    position: relative;
    display: inline-block;
}

.category-dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex; /* Enable Flexbox */
    align-items: center; /* Align items vertically in the center */
    background-color: unset; /* Maintain your existing style */
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.category-dropdown .dropdown-toggle:hover,
.category-dropdown .dropdown-toggle:active,
.category-dropdown .dropdown-toggle.dropdown-active {
    background-color: white; /* Change background to white */
    color: black; /* Change text color to black */
}

.category-dropdown .dropdown-menu-container {
    display: none; /* Initially hidden */
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #f9f9f9;
    flex-direction: row;
    z-index: 9999; /* Ensuring the dropdown is on top */
}

.category-frame a {
    color: #000000;
}

.category-frame a:hover {
    color: #EB0029;
}

.category-frame {
    width: 268px;
    min-height: 300px; /* Set your desired minimum height */
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.category-frame.child-categories {
    display: none; /* Initially hidden */
    width: 380px;
}

.category-frame.sub-child-categories {
    display: none; /* Initially hidden */
    width: 380px;
}

.dropdown-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.category-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center; /* Align items vertically in the center */
}

.category-item:hover,
.category-item.category-active {
    border-left: 2px solid #EB0029;
}

.category-item .category-image {
    width: 25px;
    height: auto;
    margin-right: 10px; /* Space between image and text */
}

.subcategory-title {
    padding: 12px 16px;
    background-color: #EB0029;
    color: white;
    display: block;
}

svg.category-icon.e-font-icon-svg.e-fas-bars {
    width: 20px;
    height: auto;
    color: white; /* Change icon color to white */
    transition: fill 0.3s; /* Smooth transition */
}

svg.dropdown-icon.e-font-icon-svg.e-fas-chevron-down {
    width: 15px;
    height: auto;
    color: white; /* Change icon color to white */
    transition: fill 0.3s; /* Smooth transition */
}

span.button-text {
    margin-left: 10px;
}

span.dropdown-icon {
    margin-left: 10px;
}

/* Ensure the fill color of the SVG icons is also white */
.category-icon svg,
.dropdown-icon svg {
    fill: white; /* Change the fill color of the SVG to white */
    transition: fill 0.3s; /* Smooth transition */
}

.category-dropdown .dropdown-toggle:hover .category-icon svg,
.category-dropdown .dropdown-toggle:hover .dropdown-icon svg,
.category-dropdown .dropdown-toggle:active .category-icon svg,
.category-dropdown .dropdown-toggle:active .dropdown-icon svg,
.category-dropdown .dropdown-toggle.dropdown-active .category-icon svg,
.category-dropdown .dropdown-toggle.dropdown-active .dropdown-icon svg {
    fill: #EB0029; /* Change fill color on hover and active state */
}

.category-dropdown .dropdown-toggle:hover .button-text,
.category-dropdown .dropdown-toggle:active .button-text,
.category-dropdown .dropdown-toggle.dropdown-active .button-text {
    color: black; /* Change text color to black on hover and active state */
}


.category-title {
    font-weight: bold;
    padding: 10px;
    background-color: #EB0029;
    color: #ffffff;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* Add border-bottom to Child and Sub Child list items except the last one */
.child-categories ul.dropdown-menu li {
    border-bottom: 1px solid #EB0029;
}

.child-categories ul.dropdown-menu li:last-child {
    border-bottom: none;
}

.sub-child-categories ul.dropdown-menu li {
    border-bottom: 1px solid #EB0029;
}

.sub-child-categories ul.dropdown-menu li:last-child {
    border-bottom: none;
}