/**
 * Fleet Buy Homepage Components - Frontend Styles
 * Shwapno.com inspired design with red (#ED1B24) and yellow (#FFD35E) accent colors
 */

:root {
    --fleetbuy-primary: #2f3190;
    --fleetbuy-primary-dark: #292a7d;
    --fleetbuy-accent: #2f3190;
    --fleetbuy-accent-dark: #292a7d;
    --fleetbuy-text: #3c3e44;
    --fleetbuy-text-light: #666;
    --fleetbuy-bg: #ffffff;
    --fleetbuy-border: #f1f1f1;
    --fleetbuy-shadow: rgba(0, 0, 0, 0.08);
    --fleetbuy-menu-width: 280px;
    --fleetbuy-radius: 8px;
    --fleetbuy-transition: 0.2s ease;
}

/* ==========================================================================
   Fix WooCommerce Mini Cart Drawer Overflow
   The hidden drawer overlay has display:block even when hidden,
   and the drawer panel sits at left:500px, stretching the page.
   ========================================================================== */

.wc-block-components-drawer__screen-overlay--is-hidden {
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.wc-block-components-drawer__screen-overlay--is-hidden .wc-block-mini-cart__drawer {
    visibility: hidden !important;
    transform: translateX(100%) !important;
}



/* ==========================================================================
   Homepage Hero - Main Container
   ========================================================================== */

.fleetbuy-homepage-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.fleetbuy-hero-main {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   Category Menu - Left Sidebar
   ========================================================================== */

.fleetbuy-category-menu {
    flex-shrink: 0;
    width: var(--fleetbuy-menu-width);
    background: var(--fleetbuy-bg);
    border: 1px solid var(--fleetbuy-border);
    border-radius: var(--fleetbuy-radius);
    overflow: visible;
}

.fleetbuy-menu-nav {
    padding: 8px 0;
}

.fleetbuy-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fleetbuy-menu-item {
    border-bottom: 1px solid var(--fleetbuy-border);
}

.fleetbuy-menu-item:last-child {
    border-bottom: none;
}

.fleetbuy-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--fleetbuy-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--fleetbuy-transition);
}

.fleetbuy-menu-link:hover {
    background: #fafafa;
    color: var(--fleetbuy-primary);
}

.fleetbuy-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.fleetbuy-menu-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.fleetbuy-menu-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fleetbuy-menu-arrow {
    opacity: 0.5;
    transition: opacity var(--fleetbuy-transition);
}

.fleetbuy-menu-link:hover .fleetbuy-menu-arrow {
    opacity: 1;
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */

.fleetbuy-hero-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fleetbuy-hero-slider {
    position: relative;
    background: var(--fleetbuy-bg);
    overflow: hidden;
}

.fleetbuy-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 2.5 / 1;
}

.fleetbuy-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.fleetbuy-slide.active {
    opacity: 1;
    visibility: visible;
}

.fleetbuy-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.fleetbuy-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Navigation Arrows */
.fleetbuy-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--fleetbuy-transition), background var(--fleetbuy-transition);
    z-index: 10;
    box-shadow: 0 2px 8px var(--fleetbuy-shadow);
}

.fleetbuy-hero-slider:hover .fleetbuy-slider-nav {
    opacity: 1;
}

.fleetbuy-slider-nav:hover {
    background: var(--fleetbuy-primary);
    color: white;
}

.fleetbuy-slider-prev {
    left: 15px;
}

.fleetbuy-slider-next {
    right: 15px;
}

/* Slider Dots - Hidden */
.fleetbuy-slider-dots {
    display: none;
}

/* Slider Placeholder */
.fleetbuy-slider-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: var(--fleetbuy-text-light);
    text-align: center;
    padding: 20px;
}

/* ==========================================================================
   Featured Categories
   ========================================================================== */

.fleetbuy-featured-categories {
    position: relative;
    background: var(--fleetbuy-bg);
    padding: 10px 0;
}

.fleetbuy-categories-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px 25px 5px;
}

.fleetbuy-categories-track::-webkit-scrollbar {
    display: none;
}

.fleetbuy-category-card {
    flex-shrink: 0;
    width: 180px;
    text-decoration: none;
    position: relative;
    padding-bottom: 15px;
    transition: transform var(--fleetbuy-transition);
}

.fleetbuy-category-card:hover {
    transform: translateY(-5px);
}

.fleetbuy-category-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--fleetbuy-radius);
    box-shadow: 0 2px 8px var(--fleetbuy-shadow);
}

.fleetbuy-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fleetbuy-category-card:hover .fleetbuy-category-image img {
    transform: scale(1.05);
}

.fleetbuy-category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.fleetbuy-category-label {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 24px;
    background: var(--fleetbuy-accent);
    color: var(--fleetbuy-bg);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    border-radius: 25px;
    box-shadow: 0 2px 8px var(--fleetbuy-shadow);
}

/* Categories Navigation */
.fleetbuy-categories-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--fleetbuy-bg);
    border: 1px solid var(--fleetbuy-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px var(--fleetbuy-shadow);
    transition: all var(--fleetbuy-transition);
}

.fleetbuy-categories-nav:hover {
    background: var(--fleetbuy-primary);
    border-color: var(--fleetbuy-primary);
    color: white;
}

.fleetbuy-categories-prev {
    left: 2px;
}

.fleetbuy-categories-next {
    right: 2px;
}

/* ==========================================================================
   No Items Message
   ========================================================================== */

.fleetbuy-no-items {
    padding: 20px;
    text-align: center;
    color: var(--fleetbuy-text-light);
    font-style: italic;
}

/* ==========================================================================
   Product Carousel
   ========================================================================== */

.fleetbuy-product-carousel {
    width: 100%;
    max-width: 1400px;
    margin: 30px auto;

}

.fleetbuy-product-carousel-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--fleetbuy-text);
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fleetbuy-product-carousel-wrapper {
    position: relative;
}

.fleetbuy-product-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px 20px 5px;
    flex: 1;
}

.fleetbuy-product-track::-webkit-scrollbar {
    display: none;
}

.fleetbuy-product-card {
    flex-shrink: 0;
    width: 180px;
    background: var(--fleetbuy-bg);
    border-radius: var(--fleetbuy-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--fleetbuy-transition);
}

.fleetbuy-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fleetbuy-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.fleetbuy-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafafa;
}

.fleetbuy-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fleetbuy-product-card:hover .fleetbuy-product-image img {
    transform: scale(1.05);
}

.fleetbuy-product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.fleetbuy-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--fleetbuy-primary);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.fleetbuy-product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fleetbuy-product-delivery {
    font-size: 11px;
    color: var(--fleetbuy-primary);
    font-weight: 500;
    margin-bottom: 6px;
}

.fleetbuy-product-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--fleetbuy-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.fleetbuy-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--fleetbuy-primary);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
}

.fleetbuy-product-price del {
    color: var(--fleetbuy-text-light);
    font-weight: 400;
    font-size: 12px;
}

.fleetbuy-product-price ins {
    text-decoration: none;
}

.fleetbuy-price-unit {
    font-size: 11px;
    font-weight: 400;
    color: var(--fleetbuy-text-light);
}

.fleetbuy-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: calc(100% - 24px);
    margin: 0 12px 12px 12px;
    padding: 10px 15px;
    background: var(--fleetbuy-primary);
    color: white;
    border: none;
    border-radius: var(--fleetbuy-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--fleetbuy-transition);
}

.fleetbuy-add-to-cart:hover {
    background: var(--fleetbuy-primary-dark);
}

.fleetbuy-add-to-cart svg {
    stroke: currentColor;
}

/* Product Navigation */
.fleetbuy-product-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--fleetbuy-bg);
    border: 1px solid var(--fleetbuy-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px var(--fleetbuy-shadow);
    transition: all var(--fleetbuy-transition);
}

.fleetbuy-product-nav:hover {
    background: var(--fleetbuy-primary);
    border-color: var(--fleetbuy-primary);
    color: white;
}

.fleetbuy-product-prev {
    left: 2px;
}

.fleetbuy-product-next {
    right: 2px;
}

/* ==========================================================================
   Overflow Containment — prevent horizontal page scroll on mobile
   The product/category tracks are intentionally wider than the viewport
   (overflow-x:auto for carousel scrolling), but the PARENT containers
   must clip that overflow so it doesn't bleed into the body.
   ========================================================================== */

.fleetbuy-product-carousel,
.fleetbuy-product-carousel-wrapper,
.fleetbuy-featured-categories {
    overflow: hidden;
}

/* ==========================================================================
   Mobile Responsive Styles
   ========================================================================== */

@media (max-width: 992px) {
    .fleetbuy-hero-main {
        flex-direction: column;
    }

    .fleetbuy-category-menu,
    .fleetbuy-category-menu.fleetbuy-category-menu-standalone {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        order: 2;
        /* clip any internal overflow so the page never scrolls sideways */
        overflow: hidden;
    }

    /* Hide menu on mobile when option is enabled */
    .fleetbuy-category-menu.hide-on-mobile {
        display: none;
    }

    .fleetbuy-menu-list {
        display: grid;
        /* minmax(0, 1fr) lets tracks shrink below content width so the
           grid can never grow wider than the container */
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
        background: var(--fleetbuy-border);
    }

    .fleetbuy-menu-item {
        background: var(--fleetbuy-bg);
        border-bottom: none;
        min-width: 0;
    }

    .fleetbuy-menu-link {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
        gap: 8px;
    }

    .fleetbuy-menu-arrow {
        display: none;
    }

    .fleetbuy-menu-label {
        font-size: 12px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.3;
    }

    .fleetbuy-hero-content {
        order: 1;
    }

    .fleetbuy-slider-track {
        aspect-ratio: 2 / 1;
    }

    .fleetbuy-category-card {
        width: 140px;
    }

    .fleetbuy-product-prev,
    .fleetbuy-categories-prev {
        left: 5px;
    }

    .fleetbuy-product-next,
    .fleetbuy-categories-next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .fleetbuy-homepage-hero {
        padding: 10px;
    }

    .fleetbuy-hero-main {
        gap: 15px;
    }

    .fleetbuy-menu-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fleetbuy-menu-link {
        padding: 12px 6px;
        gap: 6px;
    }

    .fleetbuy-menu-label {
        font-size: 11px;
    }

    .fleetbuy-menu-icon svg {
        width: 18px;
        height: 18px;
    }

    .fleetbuy-slider-track {
        aspect-ratio: 16 / 9;
    }

    .fleetbuy-slider-nav {
        width: 32px;
        height: 32px;
    }

    .fleetbuy-slider-prev {
        left: 10px;
    }

    .fleetbuy-slider-next {
        right: 10px;
    }

    .fleetbuy-categories-track {
        gap: 10px;
    }

    .fleetbuy-category-card {
        width: 120px;
    }

    .fleetbuy-category-label {
        font-size: 11px;
        padding: 8px 16px;
        bottom: -10px;
    }

    .fleetbuy-categories-nav {
        display: none;
    }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

@media (hover: none) {
    .fleetbuy-slider-nav {
        opacity: 1;
    }

    .fleetbuy-menu-link:hover {
        background: transparent;
        color: var(--fleetbuy-text);
    }

    .fleetbuy-menu-link:active {
        background: #fafafa;
        color: var(--fleetbuy-primary);
    }
}

/* ==========================================================================
   Standalone Block Styles
   ========================================================================== */

.fleetbuy-category-menu-standalone,
.fleetbuy-hero-slider-standalone,
.fleetbuy-featured-categories-standalone {
    max-width: 1400px;
    margin: 0 auto;
}

.fleetbuy-category-menu-standalone {
    width: 100%;
    max-width: var(--fleetbuy-menu-width);
}

/* ==========================================================================
   Animation Keyframes
   ========================================================================== */

@keyframes fleetbuy-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fleetbuy-slide.active {
    animation: fleetbuy-fadeIn 0.5s ease;
}

/* ==========================================================================
   Category Menu Scroll Show/Hide System
   ========================================================================== */

/* Hero menu hidden state — space preserved, content invisible */
.fleetbuy-category-menu.fleetbuy-menu-scrolled {
    visibility: hidden;
    pointer-events: none;
}

/* Desktop trigger — always visible on desktop, hover only works after scroll (JS controlled) */
/* No display:none needed — always shown */

/* Mobile trigger — always visible on mobile, hidden on desktop */
.shop_by_category_mobile {
    display: none !important;
}

@media (max-width: 992px) {
    .shop_by_category_mobile {
        display: block !important;
    }

    /* Hide desktop trigger on mobile */
    .shop_by_category_desktop {
        display: none !important;
    }
}

/* The dropdown panel that appears on hover (desktop) / click (mobile) */
.fleetbuy-sticky-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: var(--fleetbuy-bg, #ffffff);
    border: 1px solid var(--fleetbuy-border, #f1f1f1);
    border-radius: var(--fleetbuy-radius, 8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    overflow: visible;
}

.fleetbuy-sticky-menu-dropdown.fleetbuy-dropdown-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ensure the trigger container is positioned for dropdown */
.shop_by_category_desktop {
    position: relative;
}

/* Dropdown menu items inherit same styling as hero menu */
.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-nav {
    padding: 8px 0;
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-item {
    border-bottom: 1px solid var(--fleetbuy-border, #f1f1f1);
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-item:last-child {
    border-bottom: none;
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--fleetbuy-text, #3c3e44);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-link:hover {
    background: #fafafa;
    color: var(--fleetbuy-primary, #2f3190);
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-arrow {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-link:hover .fleetbuy-menu-arrow {
    opacity: 1;
}

/* Mobile dropdown — full width on mobile */
@media (max-width: 992px) {
    .fleetbuy-sticky-menu-dropdown {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        box-sizing: border-box;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: var(--fleetbuy-radius, 8px) var(--fleetbuy-radius, 8px) 0 0;
        transform: translateY(100%);
    }

    .fleetbuy-sticky-menu-dropdown.fleetbuy-dropdown-visible {
        transform: translateY(0);
    }

    .fleetbuy-sticky-menu-dropdown .fleetbuy-menu-list {
        display: flex;
        flex-direction: column;
    }

    .fleetbuy-sticky-menu-dropdown .fleetbuy-menu-link {
        flex-direction: row;
        padding: 14px 16px;
    }
}

/* Mobile backdrop overlay */
.fleetbuy-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fleetbuy-menu-backdrop.fleetbuy-backdrop-visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Hide WooCommerce "View Cart" link inside our product cards
   ========================================================================== */

.fleetbuy-product-card .added_to_cart,
.fleetbuy-product-card a.added_to_cart {
    display: none !important;
}

/* ==========================================================================
   Sub-menu Flyout
   ========================================================================== */

/* The parent li must be the positioning anchor */
.fleetbuy-menu-item.has-submenu {
    position: relative;
}

/* The flyout panel */
.fleetbuy-submenu {
    list-style: none;
    margin: 0;
    padding: 8px 0;

    /* Positioned to the right of the sidebar menu */
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--fleetbuy-border, #f1f1f1);
    border-radius: var(--fleetbuy-radius, 8px);
    box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* Show flyout on hover */
.fleetbuy-menu-item.has-submenu:hover > .fleetbuy-submenu,
.fleetbuy-menu-item.has-submenu:focus-within > .fleetbuy-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Keep arrow fully visible on hover for has-submenu items */
.fleetbuy-menu-item.has-submenu:hover > .fleetbuy-menu-link .fleetbuy-menu-arrow {
    opacity: 1;
    color: var(--fleetbuy-primary, #2f3190);
}

/* Sub-item links */
.fleetbuy-submenu-item {
    border-bottom: 1px solid var(--fleetbuy-border, #f1f1f1);
}

.fleetbuy-submenu-item:last-child {
    border-bottom: none;
}

.fleetbuy-submenu-link {
    display: block;
    padding: 10px 18px;
    color: var(--fleetbuy-text, #3c3e44);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.fleetbuy-submenu-link:hover {
    background: #fafafa;
    color: var(--fleetbuy-primary, #2f3190);
}

/* -------------------------------------------------------------------
   Dropdown context — submenu still flies to the right
   ------------------------------------------------------------------- */
.fleetbuy-sticky-menu-dropdown .fleetbuy-menu-item.has-submenu {
    position: relative;
}

.fleetbuy-sticky-menu-dropdown .fleetbuy-submenu {
    left: 100%;
    top: 0;
}

/* -------------------------------------------------------------------
   Mobile — flyout becomes an inline accordion below the parent link
   ------------------------------------------------------------------- */
@media (max-width: 992px) {
    .fleetbuy-submenu {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, visibility 0.3s ease;
        background: #f5f6fa;
        padding: 0;
        pointer-events: none;
    }

    .fleetbuy-menu-item.has-submenu:hover > .fleetbuy-submenu,
    .fleetbuy-menu-item.has-submenu:focus-within > .fleetbuy-submenu {
        max-height: 400px;
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        transform: none;
    }

    .fleetbuy-submenu-link {
        padding: 10px 24px;
        font-size: 13px;
        border-left: 3px solid var(--fleetbuy-primary, #2f3190);
    }
}