/* ==========================================================================
   Mega Menu Panel — triggered by .simplistic-header-desktop__menu-btn
   ========================================================================== */

   .mega-menu-panel {
    position: fixed;
    top: var(--budi-header-height, 0px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: top .25s ease, opacity .25s ease, visibility 0s linear .25s;
}

.mega-menu-panel[hidden] {
    display: none;
}

.mega-menu-panel .container{
    max-width: var(--header-max-width);
}

body.mega-menu-open {
    overflow: hidden;
}

body.mega-menu-open .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: top .25s ease, opacity .25s ease;
}

.mega-menu-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.mega-menu-panel__inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    max-height: 100vh;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    transform: translateY(-12px);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    padding: 0 0 40px;
}

body.mega-menu-open .mega-menu-panel__inner {
    transform: translateY(0);
    opacity: 1;
}

.mega-menu-panel__mobile-availability {
    display: block;
    margin: 0;
    padding: 11px 20px;
    color: var(--color-main, #E30612);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    background: #fff;
    box-shadow: 0px 2px 15px 0px rgba(0, 0, 0, 0.15);
}

/* Outer grid: nav-wrap + cta */
.mega-menu-panel__grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: stretch;
    margin-top: 50px;
}

/* Inner grid: cat-col + sub-col */
.mega-menu-panel__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 860px;
}

.mega-menu-panel__col-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--color-sub);
    margin: 0 0 35px;
}

/* ---------- Left column: categories ---------- */
.mega-menu-panel__cat-col {
    min-width: 450px;
}
.mega-menu-panel__categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mega-menu-panel__category {
    position: relative;
    border-radius: 15px;
    background: #F6F6F6;
}

.mega-menu-panel__category::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: linear-gradient(87.74deg, var(--color-main, #E30612) 1.92%, var(--color-light, #FF4540) 99.43%);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 0;
}

.mega-menu-panel__category:hover::before,
.mega-menu-panel__category:focus-within::before,
.mega-menu-panel__category.is-active::before {
    opacity: 1;
}

/* Keep all category children above the pseudo-element */
.mega-menu-panel__category > * {
    position: relative;
    z-index: 1;
}

.mega-menu-panel__category-btn {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    padding: 20px !important;
    background-color: transparent !important;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: var(--color-sub);
    border-radius: 15px;
}

.mega-menu-panel__category-icon {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    border-radius: 10px;
    background: linear-gradient(209.08deg, var(--color-light, #FF4540) 4.69%, var(--color-main, #E30612) 88.83%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mega-menu-panel__category-icon img {
    width: 35px;
    height: 35px;
}

.mega-menu-panel__category-icon svg{
    width: 35px;
    height: 35px;
}

.mega-menu-panel__category-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.mega-menu-panel__category-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-sub);
}

.mega-menu-panel__category-desc {
    font-size: 16px;
    line-height: 1.375;
    color: #6b6b6b;
}

.mega-menu-panel__category:hover,
.mega-menu-panel__category:focus-within,
.mega-menu-panel__category.is-active {
    background: #f5f5f5;
}

.mega-menu-panel__category:hover .mega-menu-panel__category-title,
.mega-menu-panel__category:hover .mega-menu-panel__category-desc,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-title,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-desc,
.mega-menu-panel__category.is-active .mega-menu-panel__category-title,
.mega-menu-panel__category.is-active .mega-menu-panel__category-desc {
    color: #fff;
}

.mega-menu-panel__category:hover .mega-menu-panel__category-icon,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-icon,
.mega-menu-panel__category.is-active .mega-menu-panel__category-icon {
    background: #fff;
}

/* Raster fallback — remove white filter so original colours show */
.mega-menu-panel__category:hover .mega-menu-panel__category-icon img,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-icon img,
.mega-menu-panel__category.is-active .mega-menu-panel__category-icon img {
    filter: none;
}

/* Inline SVG — apply gradient fill via the hidden #budi-mm-icon-grad defs */
.mega-menu-panel__category:hover .mega-menu-panel__category-icon svg,
.mega-menu-panel__category:hover .mega-menu-panel__category-icon svg path,
.mega-menu-panel__category:hover .mega-menu-panel__category-icon svg rect,
.mega-menu-panel__category:hover .mega-menu-panel__category-icon svg circle,
.mega-menu-panel__category:hover .mega-menu-panel__category-icon svg ellipse,
.mega-menu-panel__category:hover .mega-menu-panel__category-icon svg polygon,
.mega-menu-panel__category:hover .mega-menu-panel__category-icon svg polyline,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-icon svg,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-icon svg path,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-icon svg rect,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-icon svg circle,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-icon svg ellipse,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-icon svg polygon,
.mega-menu-panel__category:focus-within .mega-menu-panel__category-icon svg polyline,
.mega-menu-panel__category.is-active .mega-menu-panel__category-icon svg,
.mega-menu-panel__category.is-active .mega-menu-panel__category-icon svg path,
.mega-menu-panel__category.is-active .mega-menu-panel__category-icon svg rect,
.mega-menu-panel__category.is-active .mega-menu-panel__category-icon svg circle,
.mega-menu-panel__category.is-active .mega-menu-panel__category-icon svg ellipse,
.mega-menu-panel__category.is-active .mega-menu-panel__category-icon svg polygon,
.mega-menu-panel__category.is-active .mega-menu-panel__category-icon svg polyline {
    fill: url(#budi-mm-icon-grad) !important;
    stroke: none;
}

.mega-menu-panel__category-link {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    text-indent: -9999px;
    overflow: hidden;
}

/* Mobile-only nested subcategories: hidden on desktop */
.mega-menu-panel__mobile-sub {
    display: none;
}

/* ---------- Center column: subcategories ---------- */
.mega-menu-panel__sub {
    display: none;
}

.mega-menu-panel__sub.is-active {
    display: block;
    animation: megaMenuSlideIn .35s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes megaMenuSlideIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger items inside the active panel */
.mega-menu-panel__sub.is-active .mega-menu-panel__group-heading,
.mega-menu-panel__sub.is-active .mega-menu-panel__item {
    opacity: 0;
    animation: megaMenuItemIn .4s cubic-bezier(.22, .61, .36, 1) both;
}

.mega-menu-panel__sub.is-active .mega-menu-panel__group-heading {
    animation-delay: .05s;
}

.mega-menu-panel__sub.is-active .mega-menu-panel__item:nth-child(1) {
    animation-delay: .08s;
}

.mega-menu-panel__sub.is-active .mega-menu-panel__item:nth-child(2) {
    animation-delay: .12s;
}

.mega-menu-panel__sub.is-active .mega-menu-panel__item:nth-child(3) {
    animation-delay: .16s;
}

.mega-menu-panel__sub.is-active .mega-menu-panel__item:nth-child(4) {
    animation-delay: .20s;
}

.mega-menu-panel__sub.is-active .mega-menu-panel__item:nth-child(5) {
    animation-delay: .24s;
}

.mega-menu-panel__sub.is-active .mega-menu-panel__item:nth-child(6) {
    animation-delay: .28s;
}

.mega-menu-panel__sub.is-active .mega-menu-panel__item:nth-child(7) {
    animation-delay: .32s;
}

.mega-menu-panel__sub.is-active .mega-menu-panel__item:nth-child(n+8) {
    animation-delay: .36s;
}

@keyframes megaMenuItemIn {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .mega-menu-panel__sub.is-active,
    .mega-menu-panel__sub.is-active .mega-menu-panel__group-heading,
    .mega-menu-panel__sub.is-active .mega-menu-panel__item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.mega-menu-panel__group-heading {
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    margin: 0 0 12px;
}

.mega-menu-panel__group-heading+.mega-menu-panel__items {
    margin-bottom: 20px;
}

.mega-menu-panel__items {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Gradient can't be transitioned directly — use ::before opacity fade instead */
.mega-menu-panel__item a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 15px !important;
    padding-inline: 0 !important;
    background-color: transparent !important;
    color: var(--color-sub);
    text-decoration: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 600;
    transition: padding-inline .2s ease, color .2s ease;
}

.mega-menu-panel__item a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: linear-gradient(87.74deg, var(--color-main, #E30612) 1.92%, var(--color-light, #FF4540) 99.43%);
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 0;
}

/* Push content above the pseudo-element */
.mega-menu-panel__item a > * {
    position: relative;
    z-index: 1;
}

.mega-menu-panel__item a:hover {
    padding-inline: 15px !important;
    color: #fff;
}

.mega-menu-panel__item a:hover::before {
    opacity: 1;
}

.mega-menu-panel__item a:hover .mega-menu-panel__item-icon svg,
.mega-menu-panel__item a:hover .mega-menu-panel__item-icon svg path,
.mega-menu-panel__item a:hover .mega-menu-panel__item-icon svg rect,
.mega-menu-panel__item a:hover .mega-menu-panel__item-icon svg circle,
.mega-menu-panel__item a:hover .mega-menu-panel__item-icon svg ellipse,
.mega-menu-panel__item a:hover .mega-menu-panel__item-icon svg polygon,
.mega-menu-panel__item a:hover .mega-menu-panel__item-icon svg polyline {
    fill: #fff !important;
    stroke: none;
}

.mega-menu-panel__item a.is-active,
.mega-menu-panel__item.is-active a {
    padding-inline: 15px !important;
    color: #fff;
}

.mega-menu-panel__item a.is-active::before,
.mega-menu-panel__item.is-active a::before {
    opacity: 1;
}

.mega-menu-panel__item a.is-active .mega-menu-panel__item-icon svg,
.mega-menu-panel__item a.is-active .mega-menu-panel__item-icon svg path,
.mega-menu-panel__item a.is-active .mega-menu-panel__item-icon svg rect,
.mega-menu-panel__item a.is-active .mega-menu-panel__item-icon svg circle,
.mega-menu-panel__item a.is-active .mega-menu-panel__item-icon svg ellipse,
.mega-menu-panel__item a.is-active .mega-menu-panel__item-icon svg polygon,
.mega-menu-panel__item a.is-active .mega-menu-panel__item-icon svg polyline,
.mega-menu-panel__item.is-active a .mega-menu-panel__item-icon svg,
.mega-menu-panel__item.is-active a .mega-menu-panel__item-icon svg path,
.mega-menu-panel__item.is-active a .mega-menu-panel__item-icon svg rect,
.mega-menu-panel__item.is-active a .mega-menu-panel__item-icon svg circle,
.mega-menu-panel__item.is-active a .mega-menu-panel__item-icon svg ellipse,
.mega-menu-panel__item.is-active a .mega-menu-panel__item-icon svg polygon,
.mega-menu-panel__item.is-active a .mega-menu-panel__item-icon svg polyline {
    fill: #fff !important;
    stroke: none;
}

.mega-menu-panel__item-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mega-menu-panel__item-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---------- Right column: CTA panel ---------- */
.mega-menu-panel__cta {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: #fff;
    min-height: 360px;
    max-width: 340px;
    width: 100%;
    height: 100%;
}

.mega-menu-panel__cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(189.22deg, rgba(255, 69, 64, 0.8) 1.33%, rgba(227, 6, 18, 0.95) 92.69%);
}

.mega-menu-panel__cta-inner {
    position: relative;
    z-index: 1;
    padding: 20px 40px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.mega-menu-panel__cta-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mega-menu-panel__socials {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.mega-menu-panel__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    transition: background .2s ease;
}

.mega-menu-panel__socials a:hover {
    background: rgba(255, 255, 255, .32);
}

.mega-menu-panel__socials svg {
    width: 16px;
    height: 16px;
}

.mega-menu-panel__socials svg path {
    fill: #fff;
}

.mega-menu-panel__cta-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.mega-menu-panel__quick-buttons {
    list-style: none;
    margin: 0;
    margin-bottom: 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-menu-panel__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px !important;
    border-radius: 100px;
    background-color: transparent !important;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1em;
    border: 2px solid #FFFFFF;
    transition: background-color .2s ease, color .2s ease;
}

.mega-menu-panel__pill:hover {
    background-color: #fff !important;
    color: var(--color-main);
}

.mega-menu-panel__contact-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.mega-menu-panel__contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 25px !important;
    border-radius: 999px;
    background-color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.gradient-text {
    background-image: linear-gradient(90deg, #E30612 0%, #FF4540 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.mega-menu-panel__contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

/* ==========================================================================
   Mobile layout (≤ 991px)
   ========================================================================== */
@media (max-width: 991.98px) {
    .mega-menu-panel__inner {
        padding: 0 0 24px;
    }

    .mega-menu-panel__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 18px;
    }

    .mega-menu-panel__nav {
        grid-template-columns: 1fr;
    }

    .mega-menu-panel__cat-col {
        min-width: 0;
    }

    .mega-menu-panel__col-title {
        margin-bottom: 15px;
    }

    .mega-menu-panel__sub-col .mega-menu-panel__col-title,
    .mega-menu-panel__sub-col .mega-menu-panel__panels {
        display: none;
    }

    .mega-menu-panel__category-btn {
        padding: 15px !important;
    }

    .mega-menu-panel__category-icon {
        flex-basis: 35px;
        width: 35px;
        height: 35px;
    }

    .mega-menu-panel__category-icon svg {
        width: 22px;
    }

    .mega-menu-panel__mobile-sub {
        display: none;
        padding: 0 16px 16px 65px;
    }

    .mega-menu-panel__category.no-icon .mega-menu-panel__mobile-sub {
        padding-left: 15px;
    }

    .mega-menu-panel__items {
        align-items: flex-start;
    }

    .mega-menu-panel__category.is-active .mega-menu-panel__mobile-sub {
        display: block;
    }

    .mega-menu-panel__category.is-active .mega-menu-panel__group-heading {
        color: #fff;
    }

    .mega-menu-panel__category.is-active .mega-menu-panel__item a {
        color: #fff;
        background: rgba(255, 255, 255, 0.2) !important;
        font-size: 16px;
        padding: 8px 10px !important;
        margin-bottom: 6px;
    }

    .mega-menu-panel__category.is-active .mega-menu-panel__item a::before {
        border-radius: 8px;
        opacity: 0;
    }

    .mega-menu-panel__category.is-active .mega-menu-panel__item-icon {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    .mega-menu-panel__category.is-active .mega-menu-panel__item-icon svg,
    .mega-menu-panel__category.is-active .mega-menu-panel__item-icon svg path,
    .mega-menu-panel__category.is-active .mega-menu-panel__item-icon svg rect,
    .mega-menu-panel__category.is-active .mega-menu-panel__item-icon svg circle,
    .mega-menu-panel__category.is-active .mega-menu-panel__item-icon svg ellipse,
    .mega-menu-panel__category.is-active .mega-menu-panel__item-icon svg polygon,
    .mega-menu-panel__category.is-active .mega-menu-panel__item-icon svg polyline {
        fill: #fff !important;
        stroke: none;
    }

    .mega-menu-panel__category.is-active .mega-menu-panel__item-icon img {
        filter: brightness(0) invert(1);
    }

    .mega-menu-panel__cta {
        display: none;
    }
}
