.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

/* hidden by default */
.search-box {
    position: absolute;
    top: 40px;
    right: 0;
    display: flex;
    gap: 5px;
    background: white;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* hide class */
.hidden {
    display: none;
}
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-box {
    position: relative;
    cursor: pointer;
    font-size: 20px;
}

.icon {
    font-size: 22px;
}

/* Cart badge */
.badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: red;
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown */
.user-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-width: 120px;
    z-index: 999;
}

.user-dropdown a {
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
}

.user-dropdown a:hover {
    background: #f5f5f5;
}

.hidden {
    display: none;
}
.sign-in a {
    color: #368846;
    font-weight: bold;
}
.header-bottom h1{
    font-size: 56px;
    color: #2D2D2D;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.flex-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 80px;
    color: #2D2D2D;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
}

.flex-title span {
    display: inline-block;
}

@media screen and (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 18px;
        padding: 14px 0 10px;
    }

    .brand-mark img {
        max-width: 82px;
        height: auto;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 16px;
        font-size: 11px;
        line-height: 1.3;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-bottom {
        width: 100%;
        overflow: hidden;
    }

    .header-bottom h1,
    .flex-title {
        font-size: clamp(28px, 8vw, 56px);
        gap: 4px;
        line-height: 1.1;
        justify-content: center;
        max-width: 100%;
        overflow: hidden;
    }

    .flex-title span:empty {
        width: 12px;
        flex: 0 0 12px;
    }

    .search-box {
        right: -60px;
        width: min(280px, calc(100vw - 36px));
        z-index: 60;
    }

    .search-box input {
        min-width: 0;
        width: 100%;
    }

    .cart-dropdown {
        right: -18px;
        width: min(330px, calc(100vw - 36px));
    }
}

@media screen and (max-width: 576px) {
    .brand-name {
        font-size: 28px;
        letter-spacing: 5px;
    }

    .header-inner {
        justify-content: space-between;
    }

    .brand-mark img {
        max-width: 68px;
    }

    .header-actions {
        gap: 10px;
        margin-left: 0;
    }

    .main-nav {
        font-size: 11px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 4px 0 8px;
        max-width: 100%;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        white-space: nowrap;
    }

    .header-bottom h1,
    .flex-title {
        font-size: clamp(18px, 7vw, 28px) !important;
        gap: 2px;
    }

    .flex-title span:empty {
        width: 8px;
        flex-basis: 8px;
    }
}
