.cat-mega-root {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 940px;
    max-width: 92vw;
    height: 540px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
    z-index: 9999;
    overflow: hidden;
}

@media (min-width: 992px) {
    .custom-mega-dropdown:hover .cat-mega-root {
        display: flex;
    }
}

@media (max-width: 991px) {
    .cat-mega-root {
        display: none !important;
    }
    .cat-mega-mobile-only {

    }
}

@media (min-width: 992px) {
    .cat-mega-mobile-only {
        display: none !important;
    }
}

.cat-mega-col {
    height: 100%;
    box-sizing: border-box;
}

.cat-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-mega-item {
    display: flex;
    align-items: stretch;
}

.cat-mega-link {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    padding: 11px 18px;
    text-decoration: none;
    color: #333;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}

.cat-mega-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-mega-link:hover,
.cat-mega-link.is-active {
    background: #f5f5f5;
    color: var(--navbar-button, #e31e24);
}

.cat-mega-drill-btn {
    flex-shrink: 0;
    width: 40px;
    border: none;
    border-left: 1px solid #f0f0f0;
    background: transparent;
    color: var(--b2c-primary, #e31e24);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .12s ease, color .12s ease;
}

.cat-mega-drill-btn:hover {
    background: var(--b2c-primary, #e31e24);
    color: #fff;
}

.cat-mega-chevron {
    font-size: 10px;
    pointer-events: none;
}

.cat-mega-col-left {
    width: 230px;
    flex-shrink: 0;
    background: #fafafa;
    border-right: 1px solid #eee;
    overflow-y: auto;
    padding: 10px 0;
}

.cat-mega-root-link {
    font-weight: 700;
    font-size: 14px;
}

.cat-mega-col-middle {
    width: 340px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cat-mega-breadcrumb {
    display: none;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fcfcfc;
}

.cat-mega-back {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #eee;
    color: var(--b2c-primary, #555);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-mega-back:hover {
    background: var(--b2c-primary, #e31e24);
    color: #fff;
}

.cat-mega-breadcrumb-trail {
    font-size: 12px;
    font-weight: 700;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-mega-empty,
.cat-mega-panel {
    display: none;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 0;
    min-height: 0;
}

.cat-mega-empty.is-active,
.cat-mega-panel.is-active {
    display: block;
}

.cat-mega-empty {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #bbb;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.cat-mega-empty.is-active {
    display: flex;
}

.cat-mega-empty i {
    font-size: 26px;
}

.cat-mega-col-right {
    flex: 1 1 auto;
    position: relative;
    background: #f4f5f7;
    min-width: 0;
}

.cat-mega-photo-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #a5a5a5;
    text-align: center;
    padding: 24px;
    font-weight: 700;
    font-size: 14px;
}

.cat-mega-photo-empty small {
    font-weight: 500;
    font-size: 11.5px;
    color: #bbb;
}

.cat-mega-photo-empty-logo {
    max-width: 130px;
    max-height: 60px;
    object-fit: contain;
    opacity: .55;
    margin-bottom: 6px;
}

.cat-mega-photo-card {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
}

.cat-mega-photo-card.is-active {
    display: flex;
}

.cat-mega-photo-img {
    width: 100%;
    height: 68%;
    object-fit: cover;
    background: #e9e9e9;
}

.cat-mega-photo-info {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.cat-mega-photo-name {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
}

.cat-mega-photo-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--b2c-primary, #1a1a1a);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .02em;
    transition: filter .15s ease;
}

.cat-mega-photo-btn:hover {
    filter: brightness(1.12);
}
