/* ==========================================================================
   Royal Fishing Flies Kenya - premium category sidebar
   Scope: #categories_block_left (blockcategories) only.
   Loaded after the theme CSS. No markup changes.
   ========================================================================== */

#categories_block_left {
    background: #fff;
    border: 1px solid #e8e3d9;
    border-radius: 16px;
    box-shadow: 0 16px 36px -30px rgba(20, 32, 18, .45);
    overflow: hidden;
    margin-bottom: 26px;
}

/* ---------- Header ------------------------------------------------------- */

#left_column #categories_block_left .title_block {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    float: none;
    width: 100%;
    margin: 0;
    padding: 16px 18px 13px;
    background: linear-gradient(135deg, #53c133 0%, #3fa425 100%);
    border: 0;
    border-top: 3px solid #fa6900;
    color: #fff;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .18em;
    text-transform: uppercase;
}

#left_column #categories_block_left .title_block:before {
    content: "\f13d";
    font-family: FontAwesome;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    margin-right: 9px;
    opacity: .95;
}

#left_column #categories_block_left .title_block:after {
    content: "Shop by fly type";
    flex: 0 0 100%;
    margin: 6px 0 0 22px;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .85;
}

/* ---------- List --------------------------------------------------------- */

#left_column #categories_block_left .block_content {
    float: none;
    width: 100%;
    padding: 6px 0 8px;
    background: #fff;
}

#left_column #categories_block_left .block_content > ul {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

#left_column #categories_block_left li {
    position: relative;
    float: none;
    width: auto;
}

#left_column #categories_block_left li a {
    position: relative;
    display: block;
    padding: 9px 32px 9px 18px;
    border: 0;
    border-bottom: 1px solid #f2eee7;
    background: transparent;
    color: #3d434a;
    font-size: 13px;
    line-height: 1.45;
    text-transform: capitalize;
    transition: background-color .18s ease, color .18s ease, padding-left .18s ease;
}

#left_column #categories_block_left li:last-child > a {
    border-bottom: 0;
}

/* Chevron affordance on every row (helps first-time visitors). */
#left_column #categories_block_left li a:after {
    content: "\f105";
    font-family: FontAwesome;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1;
    color: #c9cec9;
    transition: color .18s ease, transform .18s ease;
}

#left_column #categories_block_left li a:hover,
#left_column #categories_block_left li a:focus {
    background: #f4faf1;
    color: #2f7d1f;
    padding-left: 22px;
}

#left_column #categories_block_left li a:hover:after,
#left_column #categories_block_left li a:focus:after {
    color: #4bb52f;
    transform: translateY(-50%) translateX(2px);
}

#left_column #categories_block_left li a:focus-visible {
    outline: 2px solid #4bb52f;
    outline-offset: -2px;
}

#left_column #categories_block_left li a.selected {
    background: #f1f9ed;
    color: #2f7d1f;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #4bb52f;
}

#left_column #categories_block_left li a.selected:after {
    content: "\f105";
    color: #4bb52f;
}

/* Nested levels stay readable without the theme's arrow. */
#left_column #categories_block_left li li a {
    padding-left: 30px;
    color: #6b7078;
    font-weight: 400;
}

#left_column #categories_block_left li li a:before {
    display: none;
}

/* ---------- Responsive --------------------------------------------------- */

@media (max-width: 767px) {
    #categories_block_left {
        margin: 0 0 18px;
        border-radius: 14px;
    }

    #left_column #categories_block_left .title_block {
        padding: 14px 16px 11px;
    }

    #left_column #categories_block_left li a {
        padding: 10px 32px 10px 16px;
    }
}
