/* Header: Browse All Categories mega panel + Shop link (see inc/header-categories.php) */
.bwp-header.header-v2 .header-wrapper .header-container .header-left {
    flex: 0 0 310px;
    max-width: 310px;
}

.tessera-cats {
    position: relative;
}

.tessera-cats__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: #d40d12;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}

.tessera-cats__toggle:hover,
.tessera-cats__toggle:focus-visible {
    background: #b50b0f;
    color: #fff;
}

.tessera-cats__toggle:focus-visible {
    outline: 2px solid #f7c601;
    outline-offset: 2px;
}

.tessera-cats__toggle-label i {
    margin-right: 10px;
}

.tessera-cats__toggle-label {
    white-space: nowrap;
}

.tessera-cats__chevron {
    flex: 0 0 auto;
    transition: transform .2s ease;
}

.tessera-cats.is-open .tessera-cats__chevron {
    transform: rotate(180deg);
}

.tessera-cats__panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    width: min(1180px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 26px 32px 22px;
    background: #111;
    border-top: 3px solid #d40d12;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.tessera-cats__panel[hidden] {
    display: none;
}

.tessera-cats__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.tessera-cats__title strong {
    margin-right: 12px;
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
}

.tessera-cats__title span {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

.tessera-cats__all {
    padding: 9px 18px;
    border-radius: 30px;
    background: #d40d12;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.tessera-cats__all:hover {
    background: #b50b0f;
    color: #fff;
}

.tessera-cats__list {
    column-count: 4;
    column-gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tessera-cats__list li {
    break-inside: avoid;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.tessera-cats__list a {
    display: block;
    padding: 7px 0;
    color: #fff;
    font-size: 15px;
    line-height: 20px;
}

.tessera-cats__list a:hover,
.tessera-cats__list a:focus-visible {
    color: #ff4d52;
}

/* Shop link sits before the brand menu */
.header-v2 .header-menu-bg {
    display: flex;
    align-items: center;
}

.tessera-shop-link {
    flex: 0 0 auto;
    margin-right: 20px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    font-weight: 700;
    text-transform: uppercase;
}

.bwp-header .tessera-shop-link,
.bwp-header .tessera-shop-link:hover,
.bwp-header .tessera-shop-link:focus {
    color: #fff;
}

.tessera-shop-link:hover,
.tessera-shop-link.is-active {
    border-bottom-color: #d40d12;
}

@media (max-width: 1199px) {
    .tessera-cats__list {
        column-count: 3;
    }
}

@media (max-width: 991px) {
    .tessera-cats__list {
        column-count: 2;
    }
}
