/* Unified header action controls -----------------------------------------
 * Use the same HTML structure for compare, favorites, search, account and
 * cart: .header-action > .header-action__icon + optional .header-action__count
 */
header .menu-bar .menu-row .right .shop-btns {
    display: flex;
    align-items: center;
    gap: 2px;
}

header .menu-bar .menu-row .right .shop-btns .header-action,
.header-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 3px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #171717;
    line-height: 1;
    text-decoration: none !important;
    vertical-align: middle;
    transition: color .2s ease, background-color .2s ease,
                border-color .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 992px) {
    header .menu-bar .menu-row .right .shop-btns .header-action.d-lg-block,
    header .menu-bar .menu-row .right .shop-btns .header-action.d-lg-flex {
        display: inline-flex !important;
    }
}

header .menu-bar .menu-row .right .shop-btns .header-action__icon,
.header-action__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    line-height: 1;
    pointer-events: none;
}

header .menu-bar .menu-row .right .shop-btns .header-action__icon > i,
.header-action__icon > i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 23px !important;
    line-height: 1 !important;
}

header .menu-bar .menu-row .right .shop-btns .header-action__icon > i::before,
.header-action__icon > i::before {
    display: block !important;
    margin: 0 !important;
    line-height: 1 !important;
    vertical-align: 0 !important;
}

header .menu-bar .menu-row .right .shop-btns .header-action__count,
.header-action__count {
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    min-width: 17px;
    height: 17px;
    min-height: 17px;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: #171717;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px !important;
    font-weight: 600;
    line-height: 17px !important;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    transition: background-color .2s ease;
}

header .menu-bar .menu-row .right .shop-btns .header-action:hover,
header .menu-bar .menu-row .right .shop-btns .header-action:focus-visible {
    color: #b7861f;
    background: #fff;
    border-color: rgba(183, 134, 31, .55);
    box-shadow: 0 5px 16px rgba(23, 23, 23, .12);
    outline: none;
    transform: none;
}

header .menu-bar .menu-row .right .shop-btns .header-action:hover .header-action__count,
header .menu-bar .menu-row .right .shop-btns .header-action:focus-visible .header-action__count {
    background: #b7861f;
}

/* Theme compatibility: remove profile underline/status pseudo-elements. */
header .menu-bar .menu-row .right .shop-btns .my-account::before,
header .menu-bar .menu-row .right .shop-btns .my-account::after,
header .menu-bar .menu-row .right .shop-btns .my-account.online::before,
header .menu-bar .menu-row .right .shop-btns .my-account.online::after,
header .menu-bar .menu-row .right .shop-btns .my-account.offline::before,
header .menu-bar .menu-row .right .shop-btns .my-account.offline::after {
    display: none !important;
    content: none !important;
}

header .menu-bar .menu-row .right .shop-btns .my-account > span:not(.header-action__icon) {
    display: none !important;
}

/* Center-screen AJAX notification after add/remove. */
.ksc-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10050;
    width: max-content;
    min-width: 280px;
    max-width: min(460px, calc(100vw - 32px));
    margin: 0;
    padding: 16px 48px 16px 20px;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

.ksc-alert .ksc-alert-message {
    display: block;
    line-height: 1.35;
}

.ksc-alert .btn-close {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
}

/* Independent comparison lists grouped by the main product category. */
.ksc-compare-shortcode [hidden],
.ksc-compare-toolbar[hidden],
.ksc-compare-toolbar [hidden],
.clear-compare-list[hidden] {
    display: none !important;
}

.ksc-compare-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.ksc-compare-toolbar--auto {
    justify-content: center;
}

.ksc-compare-groups {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.ksc-compare-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    border: 1px solid #d8d3cb;
    border-radius: 999px;
    background: #fff;
    color: #242424;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.ksc-compare-group:hover,
.ksc-compare-group:focus-visible {
    border-color: #101010;
    outline: none;
}

.ksc-compare-group.is-active {
    border-color: #101010;
    background: #101010;
    color: #fff;
}

.ksc-compare-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eeece7;
    color: #242424;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
}

.ksc-compare-group.is-active .ksc-compare-group-count {
    background: #fff;
    color: #101010;
}

.add-to-compare.ksc-is-loading {
    opacity: .6;
    cursor: wait;
    pointer-events: none;
}


#compare-page .content #compare-table-container,
#compare-result {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 14px;
}

#compare-page .content #compare-table-container .compare-container,
#compare-result .compare-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: max-content;
    margin: 0 auto;
}

#compare-page .content #compare-table-container .compare-card,
#compare-result .compare-card {
    flex: 0 0 320px;
    width: 320px;
    border: 1px solid #e8e5df;
    border-radius: 28px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 15, 15, 0.06);
}

#compare-page .content #compare-table-container .compare-card-top,
#compare-result .compare-card-top {
    padding: 16px 16px 0;
    background: #fff;
}

#compare-page .content #compare-table-container .compare-card-toolbar,
#compare-result .compare-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

#compare-page .content #compare-table-container .compare-card-tags,
#compare-result .compare-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#compare-page .content #compare-table-container .compare-line-badge,
#compare-result .compare-line-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 500;
    border: 0;
}

#compare-page .content #compare-table-container .compare-line-badge.luxury-line,
#compare-result .compare-line-badge.luxury-line {
    background: linear-gradient(45deg, #666666, #0e0e0e);
    color: #fff;
}

#compare-page .content #compare-table-container .compare-line-badge.premium-line,
#compare-result .compare-line-badge.premium-line {
    background: linear-gradient(45deg, #eba73c, #d69122, #bf7600);
    color: #fff;
}

#compare-page .content #compare-table-container .compare-line-badge.universal-line,
#compare-result .compare-line-badge.universal-line {
    background: linear-gradient(45deg, #ededed, #dbdbdb);
    color: #0f0f0f;
}

#compare-page .content #compare-table-container .compare-line-badge.light-line,
#compare-result .compare-line-badge.light-line {
    background: linear-gradient(45deg, #d2e3f0, #c1d9e9, #aed0e2, #9ab7d9, #889eb7);
    color: #0f0f0f;
}

#compare-page .content #compare-table-container .compare-line-badge.junior-line,
#compare-result .compare-line-badge.junior-line {
    background: linear-gradient(45deg, #7DBA82, #66A673, #38774e);
    color: #fff;
}

#compare-page .content #compare-table-container .compare-line-badge.default-line,
#compare-result .compare-line-badge.default-line {
    background: #d9e8f2;
    color: #4e7189;
}

#compare-page .content #compare-table-container .compare-remove-btn,
#compare-result .compare-remove-btn {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d7d2c8;
    background: #fff;
    color: #101010;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
}

#compare-page .content #compare-table-container .compare-remove-btn:hover,
#compare-result .compare-remove-btn:hover {
    background: #101010;
    border-color: #101010;
    color: #fff;
}

#compare-page .content #compare-table-container .compare-product-image,
#compare-result .compare-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 292px;
    padding: 10px;
    margin: 0;
    text-decoration: none;
    border-radius: 24px;
    background: transparent;
    border: 0;
}

#compare-page .content #compare-table-container .compare-product-image img,
#compare-result .compare-product-image img {
    width: 100%;
    height: 270px;
    object-fit: contain;
    display: block;
    padding: 18px;
    background: #fff;
    border: 1px solid #ebe5dc;
    border-radius: 24px;
    box-sizing: border-box;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

#compare-page .content #compare-table-container .compare-product-image:hover img,
#compare-result .compare-product-image:hover img {
    transform: scale(1.03);
    border-color: #d9d2c7;
    box-shadow: 0 10px 24px rgba(15, 15, 15, 0.06);
}


#compare-page .content #compare-table-container .compare-product-summary,
#compare-result .compare-product-summary {
    position: relative;
    z-index: 2;
    display: block !important;
    min-height: 118px;
    padding: 16px 2px 18px;
    box-sizing: border-box;
    text-align: left;
    visibility: visible !important;
    opacity: 1 !important;
}

#compare-page .content #compare-table-container .compare-product-title,
#compare-result .compare-product-title {
    display: -webkit-box !important;
    min-height: 4.6em;
    overflow: hidden;
    color: #0f0f0f !important;
    text-decoration: none !important;
    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

#compare-page .content #compare-table-container .compare-product-subtitle,
#compare-result .compare-product-subtitle {
    color: #656565;
    font-size: 0.92rem;
    line-height: 1.35;
    min-height: 2.5em;
}

#compare-page .content #compare-table-container .compare-card-body,
#compare-result .compare-card-body {
    border-top: 1px solid #efebe5;
}

#compare-page .content #compare-table-container .compare-data-row,
#compare-result .compare-data-row {
    min-height: 78px;
    padding: 14px 18px;
    border-top: 1px solid #efebe5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

#compare-page .content #compare-table-container .compare-card-body .compare-data-row:first-child,
#compare-result .compare-card-body .compare-data-row:first-child {
    min-height: 96px;
}

#compare-page .content #compare-table-container .compare-card-body .compare-data-row:first-child .compare-data-value,
#compare-result .compare-card-body .compare-data-row:first-child .compare-data-value {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

#compare-page .content #compare-table-container .compare-data-row:first-child,
#compare-result .compare-data-row:first-child {
    border-top: 0;
}

#compare-page .content #compare-table-container .compare-data-row:nth-child(odd),
#compare-result .compare-data-row:nth-child(odd) {
    background: #fcfbf9;
}

#compare-page .content #compare-table-container .compare-data-label,
#compare-result .compare-data-label {
    color: #7c7c7c;
    font-size: 0.76rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 8px;
}

#compare-page .content #compare-table-container .compare-data-value,
#compare-result .compare-data-value {
    color: #222;
    font-size: 1rem;
    line-height: 1.35;
}

#compare-page .content #compare-table-container .compare-data-value .woocommerce-Price-amount,
#compare-result .compare-data-value .woocommerce-Price-amount,
#compare-page .content #compare-table-container .compare-data-value .amount,
#compare-result .compare-data-value .amount {
    white-space: nowrap;
}

#compare-page .content #compare-table-container del,
#compare-result del {
    color: #8c8c8c;
    font-size: 0.95rem;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    text-decoration-color: #c7382b;
    text-decoration-thickness: 1px;
    opacity: 0.95;
}

#compare-page .content #compare-table-container ins,
#compare-result ins {
    color: #c7382b;
    font-weight: 700;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

#compare-page .content #compare-table-container .compare-data-row:first-child .compare-data-value > .woocommerce-Price-amount,
#compare-page .content #compare-table-container .compare-data-row:first-child .compare-data-value > .amount,
#compare-result .compare-data-row:first-child .compare-data-value > .woocommerce-Price-amount,
#compare-result .compare-data-row:first-child .compare-data-value > .amount {
    color: #1d8d43;
    font-size: 1.55rem;
    font-weight: 700;
}

#compare-page .content .btn.btn-danger.clear-compare-list,
#compare-page .content .btn.btn-danger,
#compare-result .btn.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #101010;
    background: #101010;
    color: #fff;
    font-weight: 500;
    box-shadow: none;
}

#compare-page .content .btn.btn-danger.clear-compare-list:hover,
#compare-page .content .btn.btn-danger:hover,
#compare-result .btn.btn-danger:hover {
    background: #fff;
    color: #101010;
    border-color: #101010;
}

@media (max-width: 575.98px) {
    .ksc-compare-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ksc-compare-groups {
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .ksc-compare-group {
        flex: 0 0 auto;
    }

    .ksc-compare-toolbar .clear-compare-list {
        align-self: center;
    }

    #compare-page .content #compare-table-container .compare-container,
    #compare-result .compare-container {
        gap: 14px;
    }

    #compare-page .content #compare-table-container .compare-card,
    #compare-result .compare-card {
        flex-basis: 268px;
        width: 268px;
        border-radius: 22px;
    }

    #compare-page .content #compare-table-container .compare-card-top,
    #compare-result .compare-card-top {
        padding: 14px 14px 0;
    }

    #compare-page .content #compare-table-container .compare-product-image,
    #compare-result .compare-product-image {
        min-height: 250px;
        border-radius: 18px;
        padding: 8px;
    }

    #compare-page .content #compare-table-container .compare-product-image img,
    #compare-result .compare-product-image img {
        height: 226px;
        padding: 14px;
        border-radius: 20px;
    }

    #compare-page .content #compare-table-container .compare-product-title,
    #compare-result .compare-product-title {
        font-size: 1.02rem;
    }

    #compare-page .content #compare-table-container .compare-data-row,
    #compare-result .compare-data-row {
        min-height: 72px;
        padding: 12px 14px;
    }

    #compare-page .content #compare-table-container .compare-card-body .compare-data-row:first-child,
    #compare-result .compare-card-body .compare-data-row:first-child {
        min-height: 88px;
    }
}

/* Header row alignment ---------------------------------------------------
 * Keep every action control on the same 36px flex line. The theme uses
 * different display modes and icon line-heights for compare, favorites,
 * search, account and cart, which creates a visible vertical jump.
 */
header .menu-bar .menu-row .right .shop-btns {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end;
    min-height: 36px;
    line-height: 1 !important;
}

header .menu-bar .menu-row .right .shop-btns > * {
    align-self: center !important;
}

header .menu-bar .menu-row .right .shop-btns > a.compare-link,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link,
header .menu-bar .menu-row .right .shop-btns > a.search-btn,
header .menu-bar .menu-row .right .shop-btns > a.my-account,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    flex: 0 0 36px;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 4px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    box-sizing: border-box;
}

header .menu-bar .menu-row .right .shop-btns > a.search-btn > i,
header .menu-bar .menu-row .right .shop-btns > a.my-account > i,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents > i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 23px !important;
    line-height: 1 !important;
}

/* Position both badges against the same outer 36px link, regardless of
 * whether the counter is a direct child or lives inside an icon wrapper.
 */
header .menu-bar .menu-row .right .shop-btns .compare-link .ksc-compare-link-icon,
header .menu-bar .menu-row .right .shop-btns .ksf-favorites-link .ksf-favorites-link-icon {
    position: static !important;
}

header .menu-bar .menu-row .right .shop-btns .compare-link .compare-count,
header .menu-bar .menu-row .right .shop-btns .compare-link [data-compare-count],
header .menu-bar .menu-row .right .shop-btns .ksf-favorites-link .ksf-favorites-count {
    top: -3px !important;
    right: -4px !important;
}

/* Bootstrap Icons have different optical bounds. The heart glyph sits a
 * little higher than the arrows/search/account/cart glyphs, so compensate
 * only the glyph while keeping its 36px control and badge unchanged.
 */
header .menu-bar .menu-row .right .shop-btns .ksf-favorites-link .ksf-favorites-link-icon > i {
    transform: translateY(2px) !important;
}

/* v2.0.7 — unified header actions and counters --------------------------
 * The counter is now anchored to the outer 36×36 control for Compare,
 * Favorites and Cart. This keeps the number close to the glyph and makes
 * all three badges identical, regardless of the inner markup used by each
 * plugin/theme component.
 */
header .menu-bar .menu-row .right .shop-btns > a.compare-link,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link,
header .menu-bar .menu-row .right .shop-btns > a.search-btn,
header .menu-bar .menu-row .right .shop-btns > a.my-account,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents {
    position: relative !important;
    border: 1px solid transparent !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    color: #171717 !important;
    transition:
        color .22s ease,
        background-color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease !important;
}

header .menu-bar .menu-row .right .shop-btns > a.compare-link:hover,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link:hover,
header .menu-bar .menu-row .right .shop-btns > a.search-btn:hover,
header .menu-bar .menu-row .right .shop-btns > a.my-account:hover,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents:hover,
header .menu-bar .menu-row .right .shop-btns > a.compare-link:focus-visible,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link:focus-visible,
header .menu-bar .menu-row .right .shop-btns > a.search-btn:focus-visible,
header .menu-bar .menu-row .right .shop-btns > a.my-account:focus-visible,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents:focus-visible {
    background-color: #fff !important;
    border-color: rgba(183, 134, 31, .28) !important;
    color: #b7861f !important;
    box-shadow: 0 5px 16px rgba(23, 23, 23, .11) !important;
    outline: none !important;
    text-decoration: none !important;
}

/* Keep every Bootstrap glyph optically centred and equally sized. */
header .menu-bar .menu-row .right .shop-btns > a.compare-link > i,
header .menu-bar .menu-row .right .shop-btns > a.compare-link .ksc-compare-link-icon > i,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-link-icon > i,
header .menu-bar .menu-row .right .shop-btns > a.search-btn > i,
header .menu-bar .menu-row .right .shop-btns > a.my-account > i,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents > i {
    width: 26px !important;
    height: 26px !important;
    font-size: 22px !important;
    line-height: 1 !important;
    transform: none !important;
}

/* Heart has a slightly high optical centre in Bootstrap Icons. */
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-link-icon > i {
    transform: translateY(1px) !important;
}

/* Inner wrappers must not become the positioning context for badges. */
header .menu-bar .menu-row .right .shop-btns > a.compare-link .ksc-compare-link-icon,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-link-icon {
    position: static !important;
}

header .menu-bar .menu-row .right .shop-btns > a.compare-link .compare-count,
header .menu-bar .menu-row .right .shop-btns > a.compare-link [data-compare-count],
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-count,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents .cart-count,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents .count {
    position: absolute !important;
    top: -1px !important;
    right: -1px !important;
    z-index: 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 1px solid #f1f1f1 !important;
    border-radius: 999px !important;
    background-color: #171717 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 14px !important;
    letter-spacing: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
    pointer-events: none !important;
    transition: background-color .22s ease, border-color .22s ease !important;
}

header .menu-bar .menu-row .right .shop-btns > a.compare-link:hover .compare-count,
header .menu-bar .menu-row .right .shop-btns > a.compare-link:focus-visible .compare-count,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link:hover .ksf-favorites-count,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link:focus-visible .ksf-favorites-count,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents:hover .cart-count,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents:focus-visible .cart-count {
    background-color: #b7861f !important;
    border-color: #fff !important;
}

/* v2.0.8 — final header alignment ---------------------------------------
 * Use one coordinate system for every action in the desktop header.
 * Zero padding and a fixed icon box prevent Bootstrap glyph baselines and
 * theme styles from moving individual controls up or down.
 */
header .menu-bar .menu-row .right .shop-btns {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    min-height: 36px !important;
    line-height: 0 !important;
}

header .menu-bar .menu-row .right .shop-btns > a.compare-link,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link,
header .menu-bar .menu-row .right .shop-btns > a.search-btn,
header .menu-bar .menu-row .right .shop-btns > a.my-account,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    transform: none !important;
    text-decoration: none !important;
}

/* Inner wrappers are purely visual and never act as badge anchors. */
header .menu-bar .menu-row .right .shop-btns > a.compare-link .ksc-compare-link-icon,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-link-icon {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 24px !important;
}

header .menu-bar .menu-row .right .shop-btns > a.compare-link > i,
header .menu-bar .menu-row .right .shop-btns > a.compare-link .ksc-compare-link-icon > i,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-link-icon > i,
header .menu-bar .menu-row .right .shop-btns > a.search-btn > i,
header .menu-bar .menu-row .right .shop-btns > a.my-account > i,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents > i {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 24px !important;
    vertical-align: 0 !important;
    transform: none !important;
}

header .menu-bar .menu-row .right .shop-btns > a.compare-link > i::before,
header .menu-bar .menu-row .right .shop-btns > a.compare-link .ksc-compare-link-icon > i::before,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-link-icon > i::before,
header .menu-bar .menu-row .right .shop-btns > a.search-btn > i::before,
header .menu-bar .menu-row .right .shop-btns > a.my-account > i::before,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents > i::before {
    display: block !important;
    margin: 0 !important;
    line-height: 24px !important;
    vertical-align: 0 !important;
}

/* Small optical corrections only; the control boxes stay perfectly level. */
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-link-icon > i {
    transform: translateY(0) !important;
}

header .menu-bar .menu-row .right .shop-btns > a.my-account > i {
    transform: translateY(-1px) !important;
}

/* Identical badge coordinates for comparison, favorites and cart. */
header .menu-bar .menu-row .right .shop-btns > a.compare-link .compare-count,
header .menu-bar .menu-row .right .shop-btns > a.compare-link [data-compare-count],
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-count,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents .cart-count,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents .count {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    z-index: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 15px !important;
    height: 15px !important;
    min-height: 15px !important;
    margin: 0 !important;
    padding: 0 3px !important;
    border: 1px solid #f4f4f4 !important;
    border-radius: 999px !important;
    background: #171717 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 13px !important;
    letter-spacing: 0 !important;
    box-sizing: border-box !important;
    transform: none !important;
    pointer-events: none !important;
}

/* The theme puts an empty span/status decoration inside the account icon.
 * It is the short horizontal line visible below the profile glyph.
 */
header .menu-bar .menu-row .right .shop-btns > a.my-account > i > span,
header .menu-bar .menu-row .right .shop-btns > a.my-account::before,
header .menu-bar .menu-row .right .shop-btns > a.my-account::after,
header .menu-bar .menu-row .right .shop-btns > a.my-account.online::before,
header .menu-bar .menu-row .right .shop-btns > a.my-account.online::after,
header .menu-bar .menu-row .right .shop-btns > a.my-account.offline::before,
header .menu-bar .menu-row .right .shop-btns > a.my-account.offline::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Stable hover: no translate/scale, therefore no layout jump. */
header .menu-bar .menu-row .right .shop-btns > a.compare-link:hover,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link:hover,
header .menu-bar .menu-row .right .shop-btns > a.search-btn:hover,
header .menu-bar .menu-row .right .shop-btns > a.my-account:hover,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents:hover,
header .menu-bar .menu-row .right .shop-btns > a.compare-link:focus-visible,
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link:focus-visible,
header .menu-bar .menu-row .right .shop-btns > a.search-btn:focus-visible,
header .menu-bar .menu-row .right .shop-btns > a.my-account:focus-visible,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents:focus-visible {
    transform: none !important;
}

/* v2.0.9 — badge placement refinement ----------------------------------
 * Keep the counters over the upper-right corner of each glyph instead of
 * visually placing them in the gap between neighbouring header controls.
 */
header .menu-bar .menu-row .right .shop-btns > a.compare-link .compare-count,
header .menu-bar .menu-row .right .shop-btns > a.compare-link [data-compare-count],
header .menu-bar .menu-row .right .shop-btns > a.ksf-favorites-link .ksf-favorites-count,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents .cart-count,
header .menu-bar .menu-row .right .shop-btns > a.cart-contents .count {
    top: -1px !important;
    right: 2px !important;
}

/* Bootstrap's arrows icon sits a touch lower than heart/person/cart. */
header .menu-bar .menu-row .right .shop-btns > a.compare-link > i,
header .menu-bar .menu-row .right .shop-btns > a.compare-link .ksc-compare-link-icon > i {
    transform: translateY(-1px) !important;
}


/* v2.0.13 — identical counter geometry for compare, favorites and cart.
 * The Favorites badge is nested inside its icon wrapper; making that wrapper
 * static forces the badge to use the same positioned 36px link as the others.
 */
header .menu-bar .menu-row .right .shop-btns .compare-link,
header .menu-bar .menu-row .right .shop-btns .ksf-favorites-link,
header .menu-bar .menu-row .right .shop-btns .cart-contents {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 4px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

header .menu-bar .menu-row .right .shop-btns .ksf-favorites-link .ksf-favorites-link-icon {
    position: static !important;
}

header .menu-bar .menu-row .right .shop-btns .compare-link .compare-count,
header .menu-bar .menu-row .right .shop-btns .ksf-favorites-link .ksf-favorites-count,
header .menu-bar .menu-row .right .shop-btns .cart-contents .cart-count {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    height: 15px !important;
    min-height: 15px !important;
    max-height: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #171717 !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 15px !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    transform: none !important;
}

header .menu-bar .menu-row .right .shop-btns .compare-link span,
header .menu-bar .menu-row .right .shop-btns .cart-contents span,
header .menu-bar .menu-row .right .shop-btns .ksf-favorites-link span {
    margin-left: 0 !important;
}


/* v2.2.3 — mobile header visibility -------------------------------------
 * Earlier compatibility rules forced all shop actions to inline-flex with
 * !important, overriding Bootstrap's d-none classes on mobile. Keep only the
 * cart in the compact mobile header; the other actions remain available in
 * the slide-out menu.
 */
@media (max-width: 991.98px) {
    header .menu-bar .menu-row .right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        padding-right: 8px !important;
        overflow: visible !important;
    }

    header .menu-bar .menu-row .right .shop-btns {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: auto !important;
        min-width: 42px !important;
        gap: 0 !important;
        overflow: visible !important;
    }

    header .menu-bar .menu-row .right .shop-btns > .phone,
    header .menu-bar .menu-row .right .shop-btns > .countries,
    header .menu-bar .menu-row .right .shop-btns > .compare-link,
    header .menu-bar .menu-row .right .shop-btns > .ksf-favorites-link,
    header .menu-bar .menu-row .right .shop-btns > .my-account,
    header .menu-bar .menu-row .right .shop-btns > .search-btn {
        display: none !important;
    }

    header .menu-bar .menu-row .right .shop-btns > .cart-contents {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
        min-height: 38px !important;
        margin: 0 3px 0 0 !important;
        padding: 3px !important;
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
        color: #171717 !important;
        box-shadow: none !important;
    }

    header .menu-bar .menu-row .right .shop-btns > .cart-contents .header-action__icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    header .menu-bar .menu-row .right .shop-btns > .cart-contents .header-action__icon > i {
        font-size: 22px !important;
        line-height: 1 !important;
        color: inherit !important;
    }

    header .menu-bar .menu-row .right .shop-btns > .cart-contents .cart-count,
    header .menu-bar .menu-row .right .shop-btns > .cart-contents .count {
        top: -2px !important;
        right: -2px !important;
    }
}

/* Equal circular controls inside the slide-out menu. */
.menu-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 28px;
}

.menu-modal-actions > .header-action,
.menu-modal-actions > .compare-link,
.menu-modal-actions > .ksf-favorites-link,
.menu-modal-actions > .cart-contents,
.menu-modal-actions > .search-btn,
.menu-modal-actions > .my-account {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid #dedbd5 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #171717 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.menu-modal-actions > .header-action:hover,
.menu-modal-actions > .compare-link:hover,
.menu-modal-actions > .ksf-favorites-link:hover,
.menu-modal-actions > .cart-contents:hover,
.menu-modal-actions > .search-btn:hover,
.menu-modal-actions > .my-account:hover {
    background: #171717 !important;
    border-color: #171717 !important;
    color: #fff !important;
}

.menu-modal-actions .header-action__icon,
.menu-modal-actions .ksc-compare-link-icon,
.menu-modal-actions .ksf-favorites-link-icon {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.menu-modal-actions i,
.menu-modal-actions .bi {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: inherit !important;
}

.menu-modal-actions .header-action__count,
.menu-modal-actions .compare-count,
.menu-modal-actions .ksf-favorites-count,
.menu-modal-actions .cart-count {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 17px !important;
    min-width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #171717 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 17px !important;
    text-align: center !important;
}


/* v2.2.4 — final mobile-header guard.
 * Do not rely on direct-child structure: theme/shortcodes may add wrappers.
 * On mobile the compact header must contain only the cart action.
 */
@media (max-width: 991.98px) {
    .site-header-stack .menu-bar .menu-row .right .shop-btns .phone,
    .site-header-stack .menu-bar .menu-row .right .shop-btns .countries,
    .site-header-stack .menu-bar .menu-row .right .shop-btns .compare-link,
    .site-header-stack .menu-bar .menu-row .right .shop-btns .ksf-favorites-link,
    .site-header-stack .menu-bar .menu-row .right .shop-btns .my-account,
    .site-header-stack .menu-bar .menu-row .right .shop-btns .search-btn,
    .site-header-stack .menu-bar .menu-row .right .shop-btns .d-none:not(.cart-contents) {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        min-width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    .site-header-stack .menu-bar .menu-row .right,
    .site-header-stack .menu-bar .menu-row .right .shop-btns {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        flex: 0 0 44px !important;
        overflow: visible !important;
    }

    .site-header-stack .menu-bar .menu-row .right .shop-btns .cart-contents {
        display: inline-flex !important;
        visibility: visible !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 4px !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }

    .site-header-stack .menu-bar .menu-row .center {
        min-width: 0 !important;
        overflow: visible !important;
    }
}
