/* ===== TOPBAR ===== */
.topbar {
    padding: 5px 0;
    background: #fbf7eb;
    border-bottom: 1px solid #eee;

    @media (max-width: 575px) {
        padding-bottom: 0;
    }
}

.topbar .logo img {
    max-width: 90px;

    @media (max-width: 1200px) {
        max-width: 70px;
    }
}

/* Search form */
.top-bar-search {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-search__form {
    /* display: flex; */
    /* align-items: center; */
    /* width: stretch; */
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .25s;
    flex: 1;
    /* margin-right: 20px; */
    border: solid 1px #ccc;
}

.header-search__form:focus-within {
    border-color: #e4a452;
}

.header-search__form .search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 37px 9px 15px;
    font-size: 14px;
    background: transparent;
    color: #333;
    width: -webkit-fill-available;
}

.header-search__form .search-input::placeholder {
    color: #999;
}

.header-search__form .search-btn {
    background: none;
    border: none;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: color .2s;
    position: absolute;
    width: 37px;
    height: 100%;
    right: 0;
    top: 0;
    z-index: 1;
    padding: 0;
    background: white;
}

.header-search__form .search-btn:hover {
    color: #e4a452;
}

.header-search__form .search-btn svg {
    width: 20px;
    height: 20px;
}

/* Topbar right actions */
.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;

    @media (max-width: 1200px) {
        gap: 5px;
    }
}

/* Action link â€“ shared */
.topbar-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    position: relative;
    white-space: nowrap;
    transition: color .2s;
}

/* 
.topbar-action:hover {
    color: #e4a452;
} */

/* Info-style (icon + two-line text) */
.topbar-action--info {
    gap: 6px;
}

.topbar-action__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    img {
        width: 24px;
        height: 24px;
    }
}

.topbar-action__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.topbar-action p {
    font-size: 13px;
    opacity: .65;
}

.topbar-action h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-3);

    a {
        color: inherit;
    }

    @media (max-width: 1440px) {
        font-size: 14px;
    }
}

/* Icon-only actions (account, wishlist) */
.topbar-action--icon {
    padding: 4px;
}

/* Badge (wishlist, cart count) */
.topbar-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #e4a452;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Cart action */
.topbar-action--cart {
    padding: 7px 16px;
    border-radius: 30px;
    gap: 6px;
    font-weight: 400;
    font-size: 16px;
    transition: background .25s, color .25s;

    @media (max-width: 1200px) {
        padding: 7px 5px;
        font-size: 14px;
    }
}

.topbar-action--cart:hover {
    background: #d09340;
    color: #fff;
}

.topbar-action--cart svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.topbar-action__cart-text {
    margin-right: 2px;
}

.topbar-badge--cart {
    /* position: static; */
    background: #e4a452;
    color: white;
    min-width: 19px;
    height: 19px;
    font-size: 11px;
    right: 10px;
}

.top-bar-sologan {
    font-size: 18px;
    font-weight: bold;
    /* color: #fff; */
    white-space: nowrap;
    font-family: "Playfair Display", serif;
    font-style: italic;





    @media (max-width: 1200px) {
        font-size: 18px;
    }


    .title {
        display: block;
        color: #8f724f;
        text-shadow: 1px 1px 4px #e4a45254;
    }

    .sub-title {
        display: block;
        color: var(--color-4);
        margin-left: 49px;
        text-shadow: 1px 1px 0px #795548;
    }
}

.header-menu {
    background-color: var(--color-3);
    border-radius: 0;
    padding: 0;
    position: relative;
    z-index: 101;
}


.header-menu .inner {
    /* display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center; */
}

.header-menu.affix {
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 1px 2px 7px rgba(0, 0, 0, 0.15);
    animation: slide-down .5s linear forwards;
    z-index: 101;
}

.header-menu ul li {
    list-style: none;
    position: relative;
}

.logo img {
    max-width: 81px;
}

.menu .level1 {
    display: flex;
    gap: 10px 15px;
    align-items: center;
    justify-content: space-between;

    @media (max-width: 992px) {
        gap: 10px 5px
    }
}

.menu .item-level1.active .name-level1 {
    color: #e4a452;
}

.menu .item-level1 .name-level1 {
    display: inline-flex;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    gap: 2px;
    color: #fff;
    padding: 12px 0;
    text-transform: uppercase;
}

.icon-arrow {
    display: flex;
}

.icon-arrow svg {
    width: 20px;
    height: 20px;
    transform: translateY(0px);
}

.name-level1>.icon-arrow svg path {
    stroke: currentColor;
}

.header-menu .header-right ul li img,
.header-menu .header-right ul li svg {
    width: 15px;
    height: 15px;
}

.header-menu .header-right ul li a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.062745098);
    border-radius: 50%;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    position: relative;
    z-index: 1;
}

.header-menu .header-right ul li a::after {
    content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 100px;
    background: #65442b;
    opacity: 0.06;
    transform: scale(0);
    transition: all 0.4s ease;
    z-index: -1;
}

.header-menu .header-right ul li a:hover:after {
    opacity: 1;
    transform: scale(1);
}

.level2 {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFF;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    /* min-width: 200px; */
    padding: 5px 0;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 10;
    border-radius: 5px;
    width: max-content;
}

.level2 .item-level2 {
    padding: 5px 10px;
}

.name-level2 {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 16px;
}

.name-level2 .icon-arrow {
    transform: rotate(-90deg);
}

.level3 {
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 10;
    background-color: #FFF;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    /* min-width: 200px; */
    padding: 5px 0;
    border-radius: 5px;
    width: max-content;
}

.level3 .item-level3 {
    padding: 5px 10px;

}

.header-menu .header-right .icon-menu-m {
    color: var(--color-3);
    display: none;
}

.header-menu .header-right .icon-menu-m svg {
    width: 25px;
    height: 25px;
}

.search-icon {
    position: relative;
    cursor: pointer;
}

.search-icon svg {
    width: 24px;
    height: 24px;
}

.header-search {
    position: absolute;
    top: calc(100% + 35px);
    right: 0;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: .3s;
    z-index: 2;
    border-radius: 30px;
    overflow: hidden;
}

.header-search.active {
    opacity: 1;
    visibility: visible;
}

.header-search input {
    width: 300px;
    padding: 12px 35px 12px 15px;
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    padding: 0;
    align-items: center;
}

@keyframes slide-down {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-right {
    display: flex;
    gap: 5px 15px;
    align-items: center;
}

.model-forms-search {
    display: flex;
}

.header-right .cart {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 20px;
    border-radius: 50px;
    background-color: var(--color-3);
    color: #FFF;
}

.header-right .cart:hover {
    background-color: #e4a452;
}

.header-right .cart .icon {
    position: relative;
}

.header-right .cart svg {
    width: 25px;
    height: 25px;
}

.header-right .cart svg path {
    stroke: currentColor;
}

.header-right .cart .count {
    position: absolute;
    top: -4px;
    right: -7px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 10px;
    color: var(--color-3);
    background-color: #FFF;
}

.header-search-mobile {
    background: var(--color-3);
    padding: 5px 0;
    margin-top: 5px;
}

@media (max-width: 1400px) {
    .logo img {
        max-width: 190px;
    }
}

@media (min-width: 992px) {

    .close-menu-mb,
    .logo-menu,
    .svg-icon {
        display: none;
    }

    .item-level1:hover .level2 {
        opacity: 1;
        visibility: visible;
    }

    .item-level2:hover .level3 {
        opacity: 1;
        visibility: visible;
    }

}

@media (max-width: 992px) {
    .menu .item-level1 {
        border-bottom: 1px solid #ffffff24;
        padding: 5px 0;
    }

    .svg-icon {
        width: 18px;
        height: 18px;
        /* fill: #FFF; */
        position: absolute;
        top: 14px;
        right: 0px;
    }

    .level2,
    .level3 {
        position: unset;
        background-color: transparent;
        box-shadow: none;
        margin-left: 15px;
        width: 100%;
        transition: 0s;
        display: none;
        opacity: 1;
        visibility: visible;
        padding-left: 16px;
    }

    .level2 .item-level2 {
        padding: 5px 25px 5px 0px;
        color: #000;
        list-style: disc;
    }

    .level2 .item-level2 .svg-icon {
        top: 8px;
        right: 11px;
    }

    .level3 .item-level3 {
        list-style: circle;
        padding: 5px 0px;
    }

    /* .name-level2,
    .name-level3 {
        color: #FFF;
    } */

    .svg-icon.active .icon-plus-x {
        transform: scaleY(0);
    }

    .svg-icon rect,
    .svg-icon path {
        transition: all cubic-bezier(.12, .67, .53, 1) .3s;
        transform-origin: center;
    }

    .icon-arrow {
        display: none;
    }

    .header-menu .header-right .icon-menu-m {
        display: flex;
    }

    .overlay-m {
        background: #000;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 100;
    }

    .overlay-m.active {
        opacity: .5;
        visibility: visible;
    }

    .menu {
        background: #FFF;
        border-color: rgba(0, 0, 0, 0.1);
        color: #fff;
        width: 85%;
        max-width: 265px;
        position: fixed;
        z-index: 101;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: .3s;
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        padding: 15px;
        height: 100vh;
        overflow: auto;
    }

    .menu.active {
        transform: translateX(0%);
        opacity: 1;
        visibility: visible;
    }

    .menu .name-level1 {
        color: #65442b;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .menu .name-level1 img {
        width: 22px;
    }

    .menu .level1 {
        display: block;
    }

    .menu .item-level1 .name-level1 {
        display: inline-block;
        padding: 5px 0;
        color: black;
    }

    .menu .item-level1.active {
        margin-bottom: 5px;
    }

    .menu .close-menu-mb {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
    }

    .menu .close-menu-mb svg {
        width: 25px;
        height: 25px;
    }

    .logo-menu {
        margin-bottom: 15px;
    }

    .logo-menu img {
        max-width: 90px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .topbar-action--info .p {
        display: none;
    }

    .topbar-right {
        gap: 12px;
    }

    .topbar-action__cart-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .topbar-action--info {
        display: none;
    }


    .topbar-action--cart {
        padding: 6px 10px;
    }

    .topbar .logo img {
        /* max-width: 70px; */
    }

    .header-menu {
        border-radius: 0px;
        padding: 0;
    }

    .topbar-right {
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .topbar__row {
        gap: 10px 0;
    }

    .top-bar-search {
        /* order: 4; */
    }

    .top-bar-sologan {
        .title {
            /* color: wheat; */
        }
    }

    .topbar {
        /* background: var(--color-3) !important; */
        /* color: white; */

        .open-menu,
        .topbar-action--cart {
            /* color: white; */
        }
    }
}