header {
    background: #ffffff;
}

/* Navbar Styling */
header .navbar {
    padding: 10px 0;
}

header .navbar .nav-item .nav-link {
    color: #000000;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

header .navbar .nav-item .nav-link i {
    font-size: 10px;
}

/* Removing Default Dropdown Indicator */
header .navbar .nav-item .nav-link.dropdown-toggle::after {
    display: none;
}

/* Underline Hover Effect */
header .navbar .nav-item .nav-link::before {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #b3b3b3;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.2s ease-out;
}

header .navbar .nav-item .nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}



/* Right Menu Section */
.menu-right-side {
    display: flex;
    align-items: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Icon Links */
header .menu-right-side .tp-link {
    position: relative;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    color: #000000;
    background-color: #fff;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

/* Cart Count Bubble */
header .menu-right-side .cart-count-bubble {
    position: absolute;
    top: 0;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #821F40;
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar Toggler */
header .navbar-toggler {
    padding: 0;
    color: #000000;
    font-size: 30px;
    background: none;
    border: none;
    box-shadow: none;
}

header .navbar-toggler:focus{
    box-shadow: none;
}

/* Fixed Header Styles */
.unpinned {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    opacity: 1;
    z-index: 9999;
    transition: transform 0.25s ease-in-out;
}

.pinned {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(0);
    opacity: 1;
    z-index: 1000;
    transition: transform 0.25s ease-in-out;
    box-shadow: 0px 1px 6px rgba(30, 30, 30, 0.1);
}

/* Remove Header */
header.remove-header {
    position: relative;
}

/* Search Field */
.search-form .field {
    display: flex;
    position: relative;
    width: 100%;
    border: 1px solid #a9a9a9;
    transition: border-color 0.3s ease-in-out;
    overflow: hidden;
}

.search-form .field:focus-within {
    border-color: #821F40;
}

.search-form .search__input {
    flex: 1;
    padding: 5px 12px;
    border: none;
    outline: none;
    background: transparent;
    color: #a9a9a9;
}

.search-form .search__input::placeholder {
    color: #aaa;
    transition: color 0.3s ease-in-out;
}

.search-form .search__input:focus::placeholder {
    color: transparent;
}

/* Search Button */
.search-form .search__button {
    padding: 5px 12px;
    background: #ffffff;
    border: none;
    cursor: pointer;
}

.search-form .search__button svg {
    stroke: #ffffff;
    transition: stroke 0.3s ease-in-out;
}

/* Search Suggestion Box */
.search-form .suggestion-box {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
}

.search-form .suggestion-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-form .suggestion-box ul li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.search-form .suggestion-box ul li:hover {
    background: #f5f5f5;
}

@media (max-width: 480px) {
    header .offcanvas.offcanvas-end {
        width: 320px;
    }

    header .offcanvas.offcanvas-end .nav-item .nav-link {
        color: #000000;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    header .offcanvas.offcanvas-end .nav-link i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: 0.3s;
        background-color:
            color-mix(in srgb, var(--tp-common-black), transparent 100%);
    }

    .menu-right-side {
        gap: 10px;
    }

    .desktop-menu {
        display: none;
    }
}

@media (min-width: 992px) {
    header .navbar .nav-item.megamenu {
        position: unset;
    }

    /* Dropdown Menu */
    header .navbar .dropdown-menu {
        width: 100%;
        padding: 20px;
        border: 0;
        display: block;
        opacity: 0;
        visibility: hidden;
        min-width: 250px;
        transform-origin: center top 0;
        transition: all 0.3s ease-in-out 0s;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
        border-radius: 0px;
        background-color: #ffffff;
        font-size: 14px;
        left: 0;
        margin: 0;
        transform: translateY(20px);
        top: 100%;
        z-index: 1000;
    }

    header .dropdown:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        opacity: 1;
    }

    .navbar-nav .dropdown:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        margin-top: 0;
        transform: translateY(0);
        border-radius: 2px;
        border-top: 3px solid var(--tts-buttton-bg);
    }

    .mobile-menu {
        display: none;
    }

    .offcanvas-body .navbar-nav form {
        display: none;
    }

    .pinned{
        transform: none;
    }
}