:root {
    --tomex-menu-orange: #f47920;
    --tomex-menu-orange-hover: #e06a10;
    --tomex-menu-dark: #333333;
    --tomex-menu-foreground: #1a1a1a;
    --tomex-menu-bg: #ffffff;
    --tomex-menu-gray: #f5f5f5;
    --tomex-menu-muted: #f0f0f0;
    --tomex-menu-muted-fg: #6b6b6b;
    --tomex-menu-border: #e5e5e5;
    --tomex-menu-white: #ffffff;
    --tomex-menu-radius: 0.375rem;
    --tomex-menu-transition: 200ms ease;
}

.tomex-menu-mobile-menu *,
.tomex-menu-mega-menu * {
    margin: 0;
    padding: 0;
}

.tomex-menu-mobile-menu a,
.tomex-menu-mega-menu a {
    color: var(--tomex-menu-foreground);
}

.tomex-menu-mobile-menu button,
.tomex-menu-mega-menu button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.tomex-menu-mobile-menu ul,
.tomex-menu-mobile-menu ol,
.tomex-menu-mega-menu ul,
.tomex-menu-mega-menu ol {
    list-style: none;
}

.tomex-menu-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.tomex-menu-icon--sm {
    width: 0.875rem;
    height: 0.875rem;
}

.tomex-menu-icon--lg {
    width: 1.5rem;
    height: 1.5rem;
}

.tomex-menu-icon--orange {
    color: var(--tomex-menu-orange);
}

/* desktop mega menu */
.tomex-menu-mega-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
}

.tomex-menu-mega-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tomex-menu-mega-menu__inner {
    background: var(--tomex-menu-bg);
    border-bottom: 1px solid var(--tomex-menu-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.tomex-menu-mega-menu__container {
    max-width: 1280px;
    margin: 0 auto;
}

.tomex-menu-mega-menu__grid {
    display: flex;
    min-height: 450px;
}

.tomex-menu-mega-menu__bar {
    height: 4px;
    background: var(--tomex-menu-orange);
}

@media (min-width: 1281px) {
    .tomex-menu-mega-menu {
        display: block;
    }
}

.tomex-menu-mega-col1 {
    width: 240px;
    flex-shrink: 0;
    background: var(--tomex-menu-gray);
    border-right: 1px solid var(--tomex-menu-border);
}

.tomex-menu-cat-btn.tomex-menu-cat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--tomex-menu-foreground);
    border-left: 4px solid transparent;
    transition: all 150ms ease;
}

.tomex-menu-cat-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    border-left-color: rgba(244, 121, 32, 0.4);
}

.tomex-menu-cat-btn.is-active {
    background: var(--tomex-menu-bg);
    border-left-color: var(--tomex-menu-orange);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.tomex-menu-cat-btn__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.tomex-menu-cat-btn__label {
    flex: 1;
}

.tomex-menu-cat-btn__arrow {
    width: 1rem;
    height: 1rem;
    color: var(--tomex-menu-muted-fg);
    transition: all 150ms ease;
}

.tomex-menu-cat-btn.is-active .tomex-menu-cat-btn__arrow {
    color: var(--tomex-menu-orange);
    transform: translateX(2px);
}

.tomex-menu-mega-col2 {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--tomex-menu-border);
    padding: 1.25rem;
    overflow-y: auto;
    display: none;
}

.tomex-menu-mega-col2.is-active {
    display: block;
}

.tomex-menu-group {
    margin-bottom: 1.5rem;
}

.tomex-menu-group:last-child {
    margin-bottom: 0;
}

.tomex-menu-group__heading {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tomex-menu-foreground);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.tomex-menu-group__heading span,
.tomex-menu-col3__heading span,
.tomex-menu-group__heading a,
.tomex-menu-col3__heading a {
    position: relative;
    display: inline-block;
    border-bottom: 1px solid var(--tomex-menu-border);
    padding-bottom: 0.2rem;
}

.tomex-menu-group__heading a:hover,
.tomex-menu-col3__heading a:hover {
    color: var(--tomex-menu-orange);
}

.tomex-menu-col3__heading span::after,
.tomex-menu-group__heading span::after,
.tomex-menu-col3__heading a::after,
.tomex-menu-group__heading a::after {
    position: absolute;
    content: '';
    top: 100%;
    left: 0;
    width: 2rem;
    border-bottom: 1px solid var(--tomex-menu-orange);
}

.tomex-menu-group__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tomex-menu-brand-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 2px;
    transition: all 150ms ease;
    text-align: left;
}

.tomex-menu-brand-btn:hover {
    background: var(--tomex-menu-muted);
    color: var(--tomex-menu-orange);
}

.tomex-menu-brand-btn a:hover {
    color: var(--tomex-menu-orange);
}

.tomex-menu-brand-btn.is-active {
    background: rgba(244, 121, 32, 0.1);
    color: var(--tomex-menu-orange);
}

.tomex-menu-brand-btn-logo {
    height: 1.5rem;
    object-fit: contain;
}

.tomex-menu-brand-btn__dot {
    width: 6px;
    height: 6px;
    background: var(--tomex-menu-dark);
    border-radius: 50%;
    flex-shrink: 0;
}

.tomex-menu-brand-btn.is-active .tomex-menu-brand-btn__dot {
    background: var(--tomex-menu-orange);
}

.tomex-menu-brand-btn__label {
    flex: 1;
}

.tomex-menu-brand-btn__label.is-brand {
    font-weight: 700;
}

.tomex-menu-brand-btn.is-active .tomex-menu-brand-btn__label {
    font-weight: 600;
}

.tomex-menu-brand-btn__arrow {
    width: 0.875rem;
    height: 0.875rem;
    margin-left: auto;
    color: var(--tomex-menu-muted-fg);
}

.tomex-menu-mega-col3-wrapper {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--tomex-menu-border);
    padding: 1.25rem;
    overflow-y: auto;
}

.tomex-menu-mega-col3 {
    display: none;
}

.tomex-menu-mega-col3.is-active {
    display: block;
    animation: tomexMenuFadeSlide 200ms ease;
}

.tomex-menu-col3__heading {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tomex-menu-foreground);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.tomex-menu-col3__heading:not(:first-of-type) {
    margin-top: 0.75rem;
}

.tomex-menu-col3__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tomex-menu-child-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 2px;
    transition: all 150ms ease;
}

.tomex-menu-child-link:hover {
    background: var(--tomex-menu-muted);
    color: var(--tomex-menu-orange);
}

.tomex-menu-child-link__arrow {
    width: 0.75rem;
    height: 0.75rem;
    color: var(--tomex-menu-muted-fg);
}

.tomex-menu-col3__all {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tomex-menu-border);
}

.tomex-menu-col3__all a {
    font-size: 0.875rem;
    color: var(--tomex-menu-orange);
    font-weight: 500;
}

.tomex-menu-col3__all a:hover {
    text-decoration: underline;
}

.tomex-menu-mega-col4 {
    flex: 1;
    padding: 1.25rem;
    display: none;
    flex-direction: column;
}

.tomex-menu-mega-col4.is-active {
    display: flex;
}

.tomex-menu-promo {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tomex-menu-promo__image {
    position: relative;
    flex: 1;
    min-height: 220px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--tomex-menu-muted);
    background-size: cover;
    background-position: center;
    background-image: var(--menu-promo-image);
}

.tomex-menu-promo__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7), transparent);
}

.tomex-menu-promo__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
}

.tomex-menu-promo__title {
    color: var(--tomex-menu-white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tomex-menu-promo__cta.tomex-menu-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tomex-menu-orange);
    color: var(--tomex-menu-white);
    padding: 0.625rem 1.5rem;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background var(--tomex-menu-transition);
}

.tomex-menu-promo__cta:hover {
    background: var(--tomex-menu-orange-hover);
}

.tomex-menu-promo__cta-arrow {
    width: 1rem;
    height: 1rem;
}

.tomex-menu-promo__badges {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    background-color: rgb(167 78 13 / 20%);
    backdrop-filter: blur(3px);
    border-radius: 0.5rem;
    padding: 0.3rem;
}

.tomex-menu-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--tomex-menu-white);
}

.tomex-menu-badge:not(:last-of-type) {
    padding-right: 0.5rem;
    border-right: 1px solid rgba(255 255 255 / 25%);
}

.tomex-menu-badge__icon {
    color: var(--tomex-menu-orange);
    width: 1.25rem;
    height: 1.25rem;
}

/* mobile/tablet menu */
.tomex-menu-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.4);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.tomex-menu-mobile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tomex-menu-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    width: 100%;
    background: var(--tomex-menu-bg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 300ms ease;
}

.tomex-menu-mobile-menu.is-open {
    transform: translateX(0);
}

@media (min-width: 640px) {
    .tomex-menu-mobile-menu {
        width: 400px;
    }
}

@media (min-width: 768px) {
    .tomex-menu-mobile-menu {
        width: 440px;
    }
}

@media (min-width: 1281px) {
    .tomex-menu-mobile-menu,
    .tomex-menu-mobile-backdrop {
        display: none !important;
    }
}

.tomex-menu-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--tomex-menu-border);
    background: var(--tomex-menu-gray);
}

.tomex-menu-mobile-menu__header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tomex-menu-mobile-menu__back {
    padding: 0.25rem;
    margin-left: -0.25rem;
    color: var(--tomex-menu-foreground);
    transition: color var(--tomex-menu-transition);
}

.tomex-menu-mobile-menu__back:hover {
    color: var(--tomex-menu-orange);
}

.tomex-menu-mobile-menu__title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tomex-menu-mobile-menu__close {
    padding: 0.5rem;
    color: var(--tomex-menu-foreground);
    transition: color var(--tomex-menu-transition);
}

.tomex-menu-mobile-menu__close:hover {
    color: var(--tomex-menu-orange);
}

.tomex-menu-mobile-menu__breadcrumbs {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--tomex-menu-muted-fg);
    border-bottom: 1px solid var(--tomex-menu-border);
    background: var(--tomex-menu-muted);
    overflow-x: auto;
    white-space: nowrap;
}

.tomex-menu-mobile-menu__breadcrumbs .tomex-menu-icon {
    width: 0.75rem;
    height: 0.75rem;
}

.tomex-menu-breadcrumb-btn {
    font-size: 0.75rem;
    color: var(--tomex-menu-muted-fg);
    white-space: nowrap;
    transition: color var(--tomex-menu-transition);
}

.tomex-menu-breadcrumb-btn:hover {
    color: var(--tomex-menu-foreground);
}

.tomex-menu-breadcrumb-btn.is-current {
    color: var(--tomex-menu-orange);
    font-weight: 500;
}

.tomex-menu-mobile-menu__body {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.tomex-menu-mobile-level {
    display: none;
    animation: tomexMenuSlideIn 200ms ease;
}

.tomex-menu-mobile-level.is-active {
    display: block;
}

.tomex-menu-mobile-nav-links {
    border-bottom: 1px solid var(--tomex-menu-border);
}

.tomex-menu-mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tomex-menu-foreground);
    border-bottom: 1px solid var(--tomex-menu-border);
    transition: all var(--tomex-menu-transition);
}

.tomex-menu-mobile-nav-link:last-child {
    border-bottom: none;
}

.tomex-menu-mobile-nav-link:hover {
    background: var(--tomex-menu-muted);
    color: var(--tomex-menu-orange);
}

.tomex-menu-mobile-section-label {
    padding: 0.75rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tomex-menu-muted-fg);
    background: var(--tomex-menu-gray);
}

.tomex-menu-mobile-section-label a:hover {
    color: var(--tomex-menu-orange);
}

.tomex-menu-mobile-cat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--tomex-menu-border);
    transition: background var(--tomex-menu-transition);
}

.tomex-menu-mobile-cat-btn:hover {
    background: var(--tomex-menu-muted);
}

.tomex-menu-mobile-cat-btn__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.tomex-menu-mobile-cat-btn__label {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tomex-menu-mobile-cat-btn__arrow {
    width: 1rem;
    height: 1rem;
    color: var(--tomex-menu-muted-fg);
}

.tomex-menu-mobile-item-btn.tomex-menu-mobile-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--tomex-menu-border);
    transition: all var(--tomex-menu-transition);
}

.tomex-menu-mobile-item-btn:hover {
    background: var(--tomex-menu-muted);
    color: var(--tomex-menu-orange);
}

.tomex-menu-mobile-item-btn__dot {
    width: 6px;
    height: 6px;
    background: var(--tomex-menu-dark);
    border-radius: 50%;
    flex-shrink: 0;
}

.tomex-menu-mobile-item-btn__label {
    flex: 1;
    font-size: 0.875rem;
}

.tomex-menu-mobile-item-btn__label.is-brand {
    font-weight: 700;
}

.tomex-menu-mobile-item-btn__arrow {
    width: 1rem;
    height: 1rem;
    color: var(--tomex-menu-muted-fg);
}

.tomex-menu-mobile-child-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    color: var(--tomex-menu-foreground);
    border-bottom: 1px solid var(--tomex-menu-border);
    transition: all var(--tomex-menu-transition);
}

.tomex-menu-mobile-child-link:hover {
    background: var(--tomex-menu-muted);
    color: var(--tomex-menu-orange);
}

.tomex-menu-mobile-child-link__arrow {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--tomex-menu-muted-fg);
}

.tomex-menu-mobile-allproducts {
    padding: 1.25rem;
}

.tomex-menu-mobile-allproducts a {
    font-size: 0.875rem;
    color: var(--tomex-menu-orange);
    font-weight: 500;
}

.tomex-menu-mobile-allproducts a:hover {
    text-decoration: underline;
}

.tomex-menu-mobile-cta-wrap {
    padding: 1.25rem;
}

.tomex-menu-mobile-cta.tomex-menu-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--tomex-menu-orange);
    color: var(--tomex-menu-white);
    padding: 0.75rem;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background var(--tomex-menu-transition);
}

.tomex-menu-mobile-cta:hover {
    background: var(--tomex-menu-orange-hover);
}

.tomex-menu-mobile-promo-wrap {
    padding: 1.25rem;
    border-top: 1px solid var(--tomex-menu-border);
}

.tomex-menu-mobile-promo {
    background: var(--tomex-menu-gray);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.tomex-menu-mobile-promo__title {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tomex-menu-mobile-promo__cta.tomex-menu-mobile-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--tomex-menu-orange);
    color: var(--tomex-menu-white);
    padding: 0.625rem 1.25rem;
    border-radius: 2px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background var(--tomex-menu-transition);
}

.tomex-menu-mobile-promo__cta:hover {
    background: var(--tomex-menu-orange-hover);
}

@media (min-width: 768px) {
    .tomex-menu-hero__inner {
        padding: 8rem 1rem;
    }

    .tomex-menu-hero__title {
        font-size: 3rem;
    }

    .tomex-menu-hero__desc {
        font-size: 1.125rem;
    }

    .tomex-menu-hero__actions {
        flex-direction: row;
    }
}

@keyframes tomexMenuFadeSlide {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes tomexMenuSlideIn {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
