/* Sticky Category Navigation Bar */
.ms-sticky-category-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--wp--preset--color--base);
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
    text-align: center;
    transform: translateY(-150%);
    /* Start hidden above the screen */
    transition: transform 0.4s ease-in-out;
    overflow-x: auto;
    /* Allows scrolling on small screens */
    white-space: nowrap;
    /* Prevents buttons from wrapping */
}

/* Style for when the bar is visible */
.ms-sticky-category-bar.is-visible {
    transform: translateY(0);
}

/* Style for the links/buttons inside the bar */
.ms-sticky-category-bar a {
    color: #333;
    border-radius: 20px;
    padding: 8px 16px;
    margin: 0 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

/* Force the "clicked" states back to the default style.
   !important is used here to override stubborn theme styles. */
.ms-sticky-category-bar a:focus,
.ms-sticky-category-bar a:active,
.ms-sticky-category-bar a:visited {
    color: #333 !important;
}

.ms-sticky-category-bar a:hover {
    color: #c7a17a;
}

