/*========== Contact ==========*/
.header-contact-wrap{
    display:flex;
    align-items:center;
    gap:25px;
    white-space:nowrap;
}

.header-contact-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#d9a21b;
    min-width:56px;
    transition:transform .2s ease, opacity .2s ease;
}

.header-contact-item:hover{
    transform:translateY(-2px);
    opacity:.9;
}

.header-contact-icon{
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:4px;
    position:relative;
    border-radius:50%;
    background:transparent;
    border:1px solid #d8a429;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.28),
        0 1px 2px rgba(0,0,0,.06);
}

.header-contact-icon svg{
    width:22px;
    height:22px;
    color:#d8a429;
    stroke-width:1.5;
    position:relative;
    z-index:1;
}

.header-contact-label{
    font-size:12px;
    line-height:1;
    font-weight:500;
    letter-spacing:.2px;
    color:var(---dark-gold);
}

@media (max-width: 768px){
    .ast-builder-grid-row { grid-column-gap: 0; }
    .header-contact-wrap{ gap: 0; }
    .header-contact-item { min-width: 46px;}
    .header-contact-icon { margin: 0px }
    .header-contact-label{ display:none; }
}

/*========== Search form ==========*/
.icon-search { display: none; }

.ast-header-search .search-form {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    border: none !important;
}

.ast-header-search .ast-search-menu-icon .search-field { width: 15.6vw; }

.ast-header-search input[type="search"] {
    border-radius: 1.6vw;
    border: 0.05vw solid #D4AF37;
}

.ast-header-search input[type="search"]:focus {
    outline: none;
    box-shadow: 0 0 0.4vw rgba(212,175,55,0.4);
}

.ast-header-search .search-form::after {
    content: "";
    position: absolute;
    right: 0.8vw;
    top: 50%;
    transform: translateY(-50%);
    width:0.8vw;
    height:0.8vw;
    background: linear-gradient(135deg,#C6A75E,#F5E6B3,#C6A75E);
    
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 14 15.5l.3.3v.8L20 21.5 21.5 20l-6-6zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 14 15.5l.3.3v.8L20 21.5 21.5 20l-6-6zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/*========== Dropdown search ========== */
.live-search-form-wrap { position: relative; }

.live-search-box {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 999999;
    display: none;
    min-width: 360px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(180, 138, 62, 0.28);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.live-search-box.show { display: block; }

.live-search-item {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    color: inherit;
    text-decoration: none !important;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.live-search-item:hover { background: #faf6ef; }

.live-search-thumb {
    width: 68px;
    height: 68px;
    overflow: hidden;
    background: #f7f3ec;
    border: 1px solid rgba(180, 138, 62, 0.18);
    border-radius: 10px;
}

.live-search-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-search-content { min-width: 0; }

.live-search-title {
    display: block;
    margin-bottom: 5px;
    color: #2b2118;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.live-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 4px;
    color: #7a6a58;
    font-size: 12px;
}

.live-search-sku {
    padding: 2px 7px;
    color: #8a642a;
    font-size: 11px;
    line-height: 1.4;
    background: #f6efe3;
    border: 1px solid rgba(180, 138, 62, 0.22);
    border-radius: 999px;
}

.live-search-price {
    display: block;
    color: #9a6a24;
    font-size: 13px;
    font-weight: 700;
}

.live-search-price del {
    margin-right: 4px;
    font-weight: 400;
    opacity: 0.55;
}

.live-search-price .price-range { font-size: 13px; }

.live-search-price ins { text-decoration: none; }

.live-search-loading,
.live-search-empty {
    padding: 14px 12px;
    color: #7a6a58;
    font-size: 13px;
    text-align: center;
}

.live-search-view-all {
    display: block;
    margin: 6px 8px 2px;
    padding: 10px 12px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    background: #2b2118;
    border-radius: 999px;
}

.live-search-view-all:hover { background: #8a642a; }

.ast-live-search-results { display: none !important; }

@media (max-width: 768px) {
    .live-search-box {
        position: fixed;
        left: 50%;
        top: 7.5vh;
        right: auto;
        width: calc(100vw - 28px);
        max-width: 420px;
        min-width: 0;
        max-height: 50vh;
        overflow-y: auto;
        transform: translateX(-50%);
        z-index: 999999;
    }

    .live-search-item { grid-template-columns: 58px 1fr; }

    .live-search-thumb {
        width: 58px;
        height: 58px;
    }

    .live-search-title { font-size: 13px; }
}

/*========== Main menu ========== */
@media (min-width: 1024px){
    .ast-primary-header-bar { border-bottom-width: 0; }

    .ast-builder-menu .main-navigation > ul {gap: 70px}

    .ast-main-header-wrap {
        background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
        box-shadow: 0 2px 10px rgba(0,0,0,0.04);
        z-index: 2;
    }

    .main-header-menu::before,
    .main-header-menu::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 1px;
        background: linear-gradient(
            90deg,
            rgba(176, 136, 42, 0.15) 0%,
            #caa24a 20%,
            #f5e6a1 50%,
            #d4af37 78%,
            rgba(176, 136, 42, 0.15) 100%
        );
        pointer-events: none;
    }

    .main-header-menu::before { top: 10px; }

    .main-header-menu::after { bottom: 10px; }

    .main-header-menu > li > a {
        color: #222;
        font-weight: 500;
        font-size: 15px;
        padding: 18px 20px;
        position: relative;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
    }

    .main-header-menu > li > a:hover {
        background: linear-gradient(90deg, #CFAF5A, #FFD700, #B8963A);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .main-header-menu > li > a::after {
        content: "";
        position: absolute;
        left: 20%;
        bottom: 20px;
        width: 0%;
        height: 2px;
        background: linear-gradient(90deg, #CFAF5A, #FFD700);
        transition: 0.3s;
    }

    .main-header-menu > li > a:hover::after { width: 60%; }

    .main-header-menu > li.current-menu-item > a {
        background: linear-gradient(90deg, #CFAF5A, #FFD700);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/*========== Sticky header ==========*/
#duyStickyHeader{
    position:fixed;
    inset:0 0 auto;
    width:100%;
    transform:translateY(-120%);
    opacity:0;
    z-index:99;
    background:#fff;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    pointer-events:none;
    transition:transform .28s ease, opacity .28s ease;
}

#duyStickyHeader.is-visible{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
}

.duy-sticky-header__inner{
    max-width:1480px;
    min-height:62px;
    margin:0 auto;
    padding:10px 20px;
    display:flex;
    align-items:center;
    gap:20px;
}

.duy-sticky-header__logo{ flex:0 0 auto; }

.duy-sticky-header__logo img{
    display:block;
    max-width:140px !important;
    max-height:80px;
    width:auto;
}

.duy-sticky-header__title{
    font-weight:700;
    font-size:18px;
    color:#111;
    text-decoration:none;
}

.duy-sticky-header__menu{
    flex:1;
    display:flex;
    justify-content:center;
}

.duy-sticky-menu{
    display:flex;
    align-items:center;
    gap:60px;
    list-style:none;
    margin:0;
    padding:0;
}

.duy-sticky-menu > li{
    position:relative;
    margin:0;
    padding:0;
}

.duy-sticky-menu > li > a{ color:#222; }

.duy-sticky-menu > li > a:hover,
.duy-sticky-menu > li.current-menu-item > a{
    background:linear-gradient(90deg,#CFAF5A,#FFD700,#B8963A);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.duy-sticky-menu > li > a::after{
    content:"";
    position:absolute;
    left:20%;
    bottom:-5px;
    width:0;
    height:2px;
    background:linear-gradient(90deg,#CFAF5A,#FFD700);
    transition:.3s;
}

.duy-sticky-menu > li > a:hover::after{ width:60%; }

.duy-sticky-header__search{
    flex:0 0 auto;
    min-width:240px;
}

.duy-sticky-header__search form{
    width:100%;
    display:flex;
    align-items:center;
}

.duy-sticky-header__search input[type="search"],
.duy-sticky-header__search input[type="text"]{
    width:100%;
    height:42px;
    padding:0 16px;
    border-radius:999px;
    border:.05vw solid #D4AF37;
    outline:none;
    background:#fff;
}

.duy-sticky-header__search button,
.duy-sticky-header__search input[type="submit"],
.duy-sticky-header__toggle{ display:none; }

/*========== Sticky header - Mobile ==========*/
@media (max-width:768px){
    .duy-sticky-header__menu{ display:none; }

    .duy-sticky-header__inner{
        max-width:none;
        min-height:62px;
        padding:0 20px;
        box-sizing:border-box;
    }

    .duy-sticky-header__search{
        flex:1;
        min-width:0;
        max-width:none;
        margin-left:auto;
        display:flex;
        align-items:center;
    }

    #duyStickyHeader .duy-sticky-header__search :is(.ast-header-search, .ast-search-menu-icon, .search-form, form){
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        display:flex !important;
        align-items:center;
        position:relative !important;
        box-sizing:border-box;
        right:0;
    }

    #duyStickyHeader .duy-sticky-header__search :is(form,.search-form) label{
        flex:1 !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:36px !important;
        display:block !important;
        margin:0 !important;
        padding:0 !important;
        box-sizing:border-box !important;
    }

    #duyStickyHeader .duy-sticky-header__search :is(.search-field,input[type="search"],input[type="text"]){
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:36px;
        line-height:36px;
        padding:0 34px 0 12px;
        font-size:13px;
        border-radius:999px;
        border:1px solid #D4AF37;
        background:#fff;
        outline:none;
        box-sizing:border-box;
    }

    #duyStickyHeader .duy-sticky-header__search :is(input[type="search"],input[type="text"]):focus{ box-shadow:0 0 8px rgba(212,175,55,.35); }

    #duyStickyHeader .duy-sticky-header__search .search-form::after{
        content:"";
        position:absolute;
        right:12px;
        top:50%;
        transform:translateY(-50%);
        width:15px;
        height:15px;
        pointer-events:none;
        background:linear-gradient(135deg,#C6A75E,#F5E6B3,#C6A75E);
        -webkit-mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 14 15.5l.3.3v.8L20 21.5 21.5 20l-6-6zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
        mask:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 14 15.5l.3.3v.8L20 21.5 21.5 20l-6-6zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
    }

    .duy-sticky-header__toggle{
        flex:0 0 20px;
        width:42px;
        height:42px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        flex-direction:column;
        gap:5px;
        margin:0;
        padding:0;
        cursor:pointer;
        background:#fff !important;
        border:none !important;
        box-shadow:none !important;
        outline:none;
    }

    .duy-sticky-header__toggle span{
        width:18px;
        height:2px;
        display:block;
        border-radius:99px;
        background:linear-gradient(90deg,#B8963A,#FFD700,#CFAF5A);
        transition:transform .25s ease, opacity .25s ease;
    }

    #duyStickyHeader .duy-sticky-header__toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
    #duyStickyHeader .duy-sticky-header__toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
    #duyStickyHeader .duy-sticky-header__toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
}