/* =========================================================
   YAN Flower - Header navigation / category mega menu
   v1.5.107
   Reference direction: flat grey navigation, clean white mega panel.
   ========================================================= */

header.site-header .header-bottom {
    position: relative;
    z-index: 80;
    background: #f6f6f6 !important;
    border-top: 1px solid #ececec !important;
    border-bottom: 1px solid #e4e4e4 !important;
    box-shadow: none !important;
}

header.site-header .header-bottom > .container {
    position: relative;
}

header.site-header .hyt-primary-nav {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
    background: #f6f6f6;
}

/* Product category trigger - part of the same grey nav, not a white card. */
header.site-header .hyt-category-nav {
    position: static;
    flex: 0 0 236px;
    display: flex;
    align-items: center;
    padding: 0 18px 0 0;
}

header.site-header .hyt-category-trigger {
    width: 100%;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 4px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #3f3f3f;
    font-family: 'SFD-Bold', Arial, Helvetica, sans-serif !important;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none !important;
    transition: color .15s ease;
}

header.site-header .hyt-category-trigger:hover,
header.site-header .hyt-category-nav.is-open .hyt-category-trigger,
header.site-header .hyt-category-nav:focus-within .hyt-category-trigger {
    background: transparent !important;
    border-color: transparent !important;
    color: #d72229;
}

header.site-header .hyt-category-trigger__icon {
    width: 17px;
    height: 17px;
    display: inline-flex;
    flex: 0 0 17px;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

header.site-header .hyt-category-trigger__icon svg {
    display: block;
    width: 17px;
    height: 17px;
}

header.site-header .hyt-category-trigger__chevron {
    display: none !important;
}

/* Primary menu */
header.site-header .header-bottom .menu-main-wrapper {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
}

header.site-header .header-bottom ul.menu-main {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 0 !important;
    width: 100% !important;
    height: 54px;
    margin: 0 !important;
    padding: 0 !important;
    background: #f6f6f6 !important;
}

header.site-header .header-bottom ul.menu-main > li {
    position: static !important;
    flex: 0 1 auto;
    display: flex;
    align-items: stretch;
    margin: 0 !important;
}

header.site-header .header-bottom ul.menu-main > li > a {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 10px !important;
    line-height: 1.2 !important;
    color: #161616 !important;
    background: transparent !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .15s ease;
}

header.site-header .header-bottom ul.menu-main > li > a::before,
header.site-header .header-bottom ul.menu-main > li > a::after {
    display: none !important;
}

header.site-header .header-bottom ul.menu-main > li:hover > a,
header.site-header .header-bottom ul.menu-main > li:focus-within > a,
header.site-header .header-bottom ul.menu-main > li.current-menu-item > a,
header.site-header .header-bottom ul.menu-main > li.current-menu-ancestor > a {
    color: #d72229 !important;
    background: transparent !important;
}

/* Full-width WordPress submenu, matching the reference style when menu items have children. */
header.site-header .header-bottom ul.menu-main > li > ul.sub-menu {
    position: absolute !important;
    z-index: 91 !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 26px 28px 30px !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 34px;
    border: 1px solid #ff6a00 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}

header.site-header .header-bottom ul.menu-main > li:hover > ul.sub-menu,
header.site-header .header-bottom ul.menu-main > li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li {
    position: relative !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > a {
    display: block !important;
    margin: 0 0 13px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #111111 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    white-space: normal;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li:hover > a {
    color: #8e8e8e !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu {
    position: static !important;
    display: grid !important;
    gap: 9px;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu li,
header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu li a {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu li a {
    color: #363636 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    text-transform: uppercase;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu li a:hover {
    color: #8e8e8e !important;
}

/* Product category mega menu */
header.site-header .hyt-product-mega {
    position: absolute;
    z-index: 92;
    top: 100%;
    left: 0;
    width: min(960px, calc(100vw - 40px));
    max-width: 960px;
    max-height: min(580px, calc(100vh - 145px));
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
    overflow: hidden;
}

header.site-header .hyt-category-nav.is-open .hyt-product-mega,
header.site-header .hyt-category-nav:hover .hyt-product-mega,
header.site-header .hyt-category-nav:focus-within .hyt-product-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
}

header.site-header .hyt-product-mega__inner {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    width: 100%;
    min-height: 0;
    max-height: inherit;
    background: #ffffff;
}

header.site-header .hyt-product-mega__rail {
    border-right: 0;
    background: #ffffff;
    overflow-y: auto;
}

header.site-header .hyt-product-mega__parent {
    position: relative;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px;
    align-items: center;
    column-gap: 10px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid #e7e7e7;
    background: #ffffff;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 400;
    text-transform: none;
    text-decoration: none;
    transition: color .14s ease, background-color .14s ease;
}

header.site-header .hyt-product-mega__parent:hover,
header.site-header .hyt-product-mega__parent:focus,
header.site-header .hyt-product-mega__parent.is-active {
    color: #8e8e8e;
    background: #f6f6f6;
    outline: none;
}

/* Deliberately no colored active border. */
header.site-header .hyt-product-mega__parent::before,
header.site-header .hyt-product-mega__parent.is-active::before {
    display: none !important;
    content: none !important;
}


header.site-header .hyt-product-mega__parent-arrow {
    color: currentColor;
    font-size: 21px;
    font-weight: 400;
    line-height: 1;
}

header.site-header .hyt-product-mega__content {
    position: relative;
    min-width: 0;
    padding: 22px 18px 26px;
    border: 1px solid #ff6a00;
    overflow-y: auto;
    background: #ffffff;
}

header.site-header .hyt-product-mega__panel[hidden] {
    display: none !important;
}

/* The reference has no redundant panel title row. */
header.site-header .hyt-product-mega__panel-head {
    display: none !important;
}

header.site-header .hyt-product-mega__columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 34px;
    align-items: start;
}

header.site-header .hyt-product-mega__column {
    min-width: 0;
}

header.site-header .hyt-product-mega__column-title {
    margin: 0 0 10px;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    text-transform: none;
}

header.site-header .hyt-product-mega__group {
    margin: 0 0 8px;
}

header.site-header .hyt-product-mega__child,
header.site-header .hyt-product-mega__grandchildren a {
    display: block;
    padding: 0;
    color: #444444;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    text-decoration: none;
    text-transform: none;
    transition: color .14s ease;
}

header.site-header .hyt-product-mega__child.has-children {
    margin-bottom: 5px;
    color: #222222;
    font-weight: 600;
}

header.site-header .hyt-product-mega__grandchildren {
    display: grid;
    gap: 4px;
}

header.site-header .hyt-product-mega__child:hover,
header.site-header .hyt-product-mega__child:focus,
header.site-header .hyt-product-mega__grandchildren a:hover,
header.site-header .hyt-product-mega__grandchildren a:focus {
    color: #8e8e8e;
    outline: none;
}

header.site-header .hyt-product-mega__empty {
    max-width: 650px;
    padding: 16px 0;
    border: 0;
    background: transparent;
    color: #666666;
    font-size: 13px;
    line-height: 1.65;
}

@media only screen and (max-width: 1280px) and (min-width: 981px) {
    header.site-header .hyt-category-nav {
        flex-basis: 218px;
        padding-right: 12px;
    }
    header.site-header .hyt-category-trigger {
        padding: 0 3px;
        font-size: 14px;
    }
    header.site-header .header-bottom ul.menu-main > li > a {
        padding: 0 6px !important;
        font-size: 13.5px !important;
    }
    header.site-header .hyt-product-mega__inner {
        grid-template-columns: 220px minmax(0, 1fr);
    }
    header.site-header .hyt-product-mega__content {
        padding-left: 24px;
        padding-right: 24px;
    }
    header.site-header .hyt-product-mega__columns {
        column-gap: 24px;
    }
}

/* Existing mobile drawer remains the navigation under tablet breakpoint. */
@media only screen and (max-width: 980px) {
    header.site-header .header-bottom {
        display: none !important;
    }
}


/* v1.5.107 refinements: compact natural-height mega panel. */
header.site-header .hyt-product-mega__inner {
    min-height: 0 !important;
    height: auto !important;
    align-items: stretch;
}
header.site-header .hyt-product-mega__rail {
    border: 0 !important;
}
header.site-header .hyt-product-mega__content {
    align-self: stretch;
    box-sizing: border-box;
}
header.site-header .hyt-product-mega__parent:hover,
header.site-header .hyt-product-mega__parent:focus,
header.site-header .hyt-product-mega__parent.is-active {
    color: #8e8e8e !important;
    background: #f6f6f6 !important;
}

/* =========================================================
   v1.5.108 - compact standard dropdowns for the main nav.
   Only DANH MỤC SẢN PHẨM keeps the large product mega menu.
   ========================================================= */

/* Requested size for the category trigger only. */
header.site-header .hyt-category-trigger {
    font-size: 18px !important;
}

/* Top-level items with children anchor their own compact dropdown. */
header.site-header .header-bottom ul.menu-main > li.menu-item-has-children {
    position: relative !important;
}

/* Main-nav submenu: simple one-column dropdown like the reference. */
header.site-header .header-bottom ul.menu-main > li > ul.sub-menu {
    position: absolute !important;
    z-index: 93 !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    width: 250px !important;
    min-width: 250px !important;
    max-width: 280px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    display: block !important;
    border: 1px solid #eeeeee !important;
    border-radius: 0 0 8px 8px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.08) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}

header.site-header .header-bottom ul.menu-main > li:hover > ul.sub-menu,
header.site-header .header-bottom ul.menu-main > li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > a {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 11px 24px !important;
    background: transparent !important;
    color: #222222 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    white-space: normal !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li:hover > a,
header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li:focus-within > a {
    color: #8e8e8e !important;
    background: #fafafa !important;
}

/* Third level, if a menu item needs one, opens to the right instead of expanding the parent dropdown. */
header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu {
    position: absolute !important;
    z-index: 94 !important;
    top: -9px !important;
    left: 100% !important;
    right: auto !important;
    width: 250px !important;
    min-width: 250px !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    display: block !important;
    border: 1px solid #eeeeee !important;
    border-radius: 0 8px 8px 8px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.08) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(4px) !important;
    transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li:hover > ul.sub-menu,
header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li:focus-within > ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition-delay: 0s !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu li,
header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu li a {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu li a {
    display: block !important;
    padding: 11px 24px !important;
    color: #222222 !important;
    background: transparent !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu li a:hover,
header.site-header .header-bottom ul.menu-main > li > ul.sub-menu > li > ul.sub-menu li a:focus {
    color: #8e8e8e !important;
    background: #fafafa !important;
}

/* Keep the category trigger readable around the desktop/tablet transition. */
@media only screen and (max-width: 1280px) and (min-width: 981px) {
    header.site-header .hyt-category-nav {
        flex-basis: 236px;
    }
    header.site-header .hyt-category-trigger {
        font-size: 18px !important;
    }
}

/* ========================================================================== 
   v1.5.114 - WHITE PRIMARY NAV
   Keep all existing menu interactions; only align the navigation surface with
   the clean white header requested for YAN Flower.
   ========================================================================== */
header.site-header .header-bottom,
header.site-header .hyt-primary-nav,
header.site-header .header-bottom ul.menu-main,
header.site-header .hyt-category-nav{
    background:#ffffff !important;
}
header.site-header .header-bottom{
    border-top:1px solid #eeeeee !important;
    border-bottom:1px solid #eeeeee !important;
}


/* ==========================================================================
   v1.5.115 - FLAT WHITE NAV WITHOUT TOP/BOTTOM RULES
   ========================================================================== */
header.site-header .header-bottom,
header.site-header .hyt-primary-nav{
    border-top:0 !important;
    border-bottom:0 !important;
    box-shadow:none !important;
}
