/* =====================================================
   JA Shop Menu – Frontend CSS v1.1
   Starka selektorer för att slå igenom Avada-temat
   ===================================================== */

.ja-shop-sidebar {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-top: 3px solid #5979B1 !important;
    border-radius: 0 !important;
    margin-bottom: 24px !important;
    font-family: 'Open Sans', Arial, sans-serif !important;
    padding: 0 !important;
}

.ja-shop-sidebar .ja-sidebar-title {
    padding: 11px 16px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #888 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    background: #fafafa !important;
    margin: 0 !important;
}

.ja-shop-sidebar .ja-sidebar-search {
    padding: 11px 14px !important;
    border-bottom: 1px solid #e8e8e8 !important;
    background: #fafafa !important;
    margin: 0 !important;
}

.ja-shop-sidebar .ja-sidebar-search form {
    display: flex !important;
    margin: 0 !important;
}

.ja-shop-sidebar .ja-sidebar-search input[type="text"] {
    flex: 1 !important;
    border: 1px solid #ccc !important;
    border-right: none !important;
    padding: 7px 10px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    outline: none !important;
    border-radius: 2px 0 0 2px !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #333 !important;
    height: auto !important;
}

.ja-shop-sidebar .ja-sidebar-search input[type="text"]:focus {
    border-color: #5979B1 !important;
    box-shadow: none !important;
}

.ja-shop-sidebar .ja-sidebar-search button {
    padding: 7px 16px !important;
    background: #5979B1 !important;
    color: #fff !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    border-radius: 0 2px 2px 0 !important;
    transition: background 0.15s !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.ja-shop-sidebar .ja-sidebar-search button:hover {
    background: #3d5a91 !important;
}

.ja-shop-sidebar .ja-cat-item {
    border-bottom: 1px solid #e8e8e8 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ja-shop-sidebar .ja-cat-item:last-child {
    border-bottom: none !important;
}

.ja-shop-sidebar .ja-cat-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 9px 13px 9px 11px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    background: #fff !important;
    transition: background 0.12s !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
}

.ja-shop-sidebar .ja-cat-header:hover,
.ja-shop-sidebar .ja-cat-item.is-active > .ja-cat-header,
.ja-shop-sidebar .ja-cat-item.is-open > .ja-cat-header {
    background: #f0f4fb !important;
    color: inherit !important;
    text-decoration: none !important;
}

.ja-shop-sidebar .ja-cat-img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
    background: #f0f4fb !important;
    display: block !important;
    margin: 0 !important;
    padding: 4px !important;
    border: none !important;
}

/* Ikon-placeholder */
.ja-shop-sidebar .ja-cat-img--icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 4px !important;
    background: #eef2f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.ja-shop-sidebar .ja-cat-img--placeholder {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 4px !important;
    background: #eef2f9 !important;
    display: block !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.ja-shop-sidebar .ja-cat-name {
    flex: 1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #2c2c2c !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ja-shop-sidebar .ja-cat-header:hover .ja-cat-name,
.ja-shop-sidebar .ja-cat-item.is-active > .ja-cat-header .ja-cat-name,
.ja-shop-sidebar .ja-cat-item.is-open > .ja-cat-header .ja-cat-name {
    color: #5979B1 !important;
}

.ja-shop-sidebar .ja-cat-arrow {
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #bbb !important;
    border-top: 2px solid #bbb !important;
    border-bottom: none !important;
    border-left: none !important;
    transform: rotate(45deg) !important;
    flex-shrink: 0 !important;
    margin-right: 3px !important;
    transition: border-color 0.12s, transform 0.2s !important;
    display: block !important;
    border-radius: 0 !important;
    background: none !important;
}

.ja-shop-sidebar .ja-cat-header:hover .ja-cat-arrow,
.ja-shop-sidebar .ja-cat-item.is-active > .ja-cat-header .ja-cat-arrow {
    border-color: #5979B1 !important;
    border-bottom: none !important;
    border-left: none !important;
}

.ja-shop-sidebar .ja-cat-item.is-open > .ja-cat-header .ja-cat-arrow {
    transform: rotate(135deg) !important;
    border-color: #5979B1 !important;
    border-bottom: none !important;
    border-left: none !important;
}

.ja-shop-sidebar .ja-cat-subs {
    background: #f8fafd !important;
    border-top: 1px solid #dde5f5 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.25s ease !important;
}

.ja-shop-sidebar .ja-cat-subs[hidden] {
    display: none !important;
}

.ja-shop-sidebar .ja-cat-subs a {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 8px 14px 8px 20px !important;
    font-size: 13px !important;
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #edf0f7 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    font-weight: normal !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: color 0.12s, background 0.12s, padding-left 0.1s !important;
}

.ja-shop-sidebar .ja-cat-subs a:last-child {
    border-bottom: none !important;
}

/* Grupprubrik */
.ja-shop-sidebar .ja-sub-group-title {
    padding: 7px 14px 5px 14px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #888 !important;
    background: #f0f3f9 !important;
    border-top: 1px solid #dde5f5 !important;
    border-bottom: 1px solid #dde5f5 !important;
    margin: 0 !important;
}

.ja-shop-sidebar .ja-cat-subs a::before {
    content: '–' !important;
    color: #bbb !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
}

.ja-shop-sidebar .ja-cat-subs a:hover,
.ja-shop-sidebar .ja-cat-subs a.is-active {
    color: #5979B1 !important;
    background: #e8eef8 !important;
    padding-left: 24px !important;
    text-decoration: none !important;
}

.ja-shop-sidebar .ja-cat-subs a:hover::before,
.ja-shop-sidebar .ja-cat-subs a.is-active::before {
    color: #5979B1 !important;
}

.ja-shop-sidebar .ja-cat-subs a.ja-view-all {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #5979B1 !important;
    background: #eef2fb !important;
    border-top: 1px solid #d6e0f5 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding-left: 20px !important;
}

.ja-shop-sidebar .ja-cat-subs a.ja-view-all::before {
    display: none !important;
}

.ja-shop-sidebar .ja-cat-subs a.ja-view-all::after {
    content: ' →' !important;
    margin-left: auto !important;
}

.ja-shop-sidebar .ja-cat-subs a.ja-view-all:hover {
    background: #dce5f5 !important;
    padding-left: 20px !important;
}

.ja-shop-sidebar .ja-cat-item.has-badge > .ja-cat-header {
    background: color-mix(in srgb, var(--ja-badge) 15%, #fff) !important;
}

.ja-shop-sidebar .ja-cat-item.has-badge > .ja-cat-header .ja-cat-name {
    color: color-mix(in srgb, var(--ja-badge) 75%, #000) !important;
}

.ja-shop-sidebar .ja-cat-item.has-badge > .ja-cat-header .ja-cat-arrow {
    border-color: color-mix(in srgb, var(--ja-badge) 75%, #000) !important;
}

.ja-shop-sidebar .ja-cat-item.has-badge > .ja-cat-header:hover {
    background: color-mix(in srgb, var(--ja-badge) 25%, #fff) !important;
}

.widget_product_categories {
    display: none !important;
}
