.hero{
    padding: 20px 0px;
}

.hero__search {
    width: 100%;
    display: flex;
    align-items: center;
}

.hero__search__form {
    width: 100%;
}

.hero__search__form form > div {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: #f7f7f7;
    border-radius: 40px;
    padding: 6px;
    border: 1px solid #e5e5e5;
}

#main-search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 12px 18px;
    border-radius: 40px;
    font-size: 14px;
    line-height: 20px;
    color:#0A0D14;
    background-image: url("../img/search-2-line.svg") !important;
}

#city-search-id {
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 15px;
    border-left: 1px solid #ddd;
    font-size: 14px;
    cursor: pointer;
}

#main-search-input::placeholder {
    font-size: 14px;
    line-height: 20px;
    color:#0A0D14;
}

.hero__search__form form > div:focus-within {
    border-color: #4a90e2;
    background: #fff;
}

.search-area {
    display: none;
    position: absolute;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 16px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 999;
    padding: 15px;
}

.not-found-search-result,
.searching-loading {
    font-size: 14px;
    color: #777;
}

.found-products-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.found-products-content li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    transition: 0.2s;
}

.found-products-content li:hover {
    background: #f5f5f5;
    border-radius: 6px;
    padding-left: 5px;
}

.parent-stores-found,
.parent-posts-found {
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero__search__form form > div {
        flex-direction: column;
        border-radius: 20px;
    }

    #city-search-id {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
    }
}

/* =========================
   HEADER BASE
========================= */
.header-nav-line {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative; /* 🔥 ƏSAS */
}

/* =========================
   LAYOUT
========================= */
.header_cats {
    flex: 0 0 auto;
}

.header_search {
    flex: 1;
    display: flex;
}

.header_new_buttons {
    flex: 0 0 auto;
}

/* =========================
   KATALOQ BUTTON
========================= */
.hero__categories {
    position: static; /* 🔥 dəyişildi */
}

.hero__categories__all {
    background: #FA3A4D;
    color: #fff;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 14px;
    line-height: 20px;
    color:#fff;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    
}

..hero__categories__all svg {
    margin-right: 8px;
}

/* =========================
   🔥 MEGA DROPDOWN (REAL FIX)
========================= */
.dropdown-categories {
    position: absolute;
    top: 60px;

    /* 🔥 ƏSAS HİZALAMA */
    left: 0;
    right: 0;

    width: 100%;
    height: 460px;

    background: #f2f2f2;
    border-radius: 24px;
    display: none;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
    z-index: 9999;
}

/* OPEN */
.hero__categories.active .dropdown-categories {
    display: flex;
}

/* =========================
   LEFT SIDE
========================= */
.header-parent-cats {
    width: 270px;
    background: #fff;
    padding: 12px;
    overflow-y: auto;
    border-right: 1px solid #eee;
}

.header-parent-cats ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rec-cat-parent {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.rec-cat-parent img {
    width: 22px;
}

.rec-cat-parent a {
    text-decoration: none;
    color: #333;
    flex: 1;
    font-size: 14px;
}

.rec-cat-parent:hover {
    background: #f5f5f5;
}

.rec-cat-parent.active {
    background: #ffecec;
    color: #ff4d4f;
}

/* =========================
   RIGHT SIDE
========================= */
.child-cats {
    display: none;
    padding: 24px;
    width: 100%;
    overflow-y: auto;
}

.child-cats .row {
    margin: 0;
}

.child-cats .col-md-4 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.child-cats img {
    width: 20px;
}

.child-cats a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.child-cats a:hover {
    color: #ff4d4f;
}

.child-cats span {
    font-size: 12px;
}

.child-cats:first-child {
    display: block;
}

.hero__search {
    width: 100%;
    display: flex;
    align-items: center;
}

.hero__search__form {
    width: 100%;
}

.hero__search__form form > div {
    display: flex !important;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    height: 44px;
    border: 1px solid #E2E4E9;
    overflow: hidden;
}

#main-search-input {
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    padding: 0 16px;
}

#city-search-id {
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 14px;
    border-left: 1px solid #ddd;
    min-width: 140px;
}

/* =========================
   BUTTON
========================= */
.new-product-main {
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    border: none;
    height: 44px;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    line-height: 20px;
    color:#fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
}

/* =========================
   SEARCH DROPDOWN
========================= */
.search-area {
    display: none;
    position: absolute;
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 16px;
    margin-top: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    z-index: 999;
    padding: 15px;
}