/* =============================================================================
   Tenebris Store — Modern Header & Axtarış
   Bu fayl header.php vasitəsilə bütün səhifələrə qoşulur və main.min.css-dəki
   köhnə header/axtarış stillərinin üzərinə yazılır (hm- prefiksi: header modern).
   ============================================================================= */

:root {
    --hm-violet: #8b5cf6;
    --hm-violet-l: #a78bfa;
    --hm-violet-xl: #c4b5fd;
    --hm-pink: #ec4899;
    --hm-green: #22c55e;
    --hm-red: #ef4444;
    --hm-line: rgba(255, 255, 255, 0.07);
}

/* -----------------------------------------------------------------------------
   HEADER QABIĞI
   -------------------------------------------------------------------------- */
.site-header {
    background: linear-gradient(180deg, rgba(11, 11, 18, 0.94) 0%, rgba(8, 8, 13, 0.88) 100%);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.13);
    box-shadow: 0 12px 34px -24px rgba(0, 0, 0, 0.95);
}

/* Alt kənarda incə qradient xətt */
.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(139, 92, 246, 0.45) 35%,
                rgba(236, 72, 153, 0.35) 65%, transparent 95%);
    pointer-events: none;
}

.site-header.scrolled {
    background: rgba(8, 8, 13, 0.96);
    border-bottom-color: rgba(139, 92, 246, 0.22);
}

/* -----------------------------------------------------------------------------
   LOQO MƏTNİ
   Qeyd: main.min.css-də mətn `background: var(--gradient)` + background-clip:text
   ilə boyanır. Həmin dəyişən həll olunmasa mətn görünməz qalır, ona görə burada
   qradient açıq şəkildə təyin olunur və solid rəng fallback saxlanılır.
   -------------------------------------------------------------------------- */
.logo-text {
    color: #c4b5fd;
    background-image: linear-gradient(100deg, #ffffff 0%, #d6c9ff 55%, #f2a8dd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -----------------------------------------------------------------------------
   DESKTOP NAVİQASİYA — ikonlu pill bəndlər
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
    .main-nav ul {
        gap: 3px;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .main-nav .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 13px;
        border-radius: 12px;
        font-size: 13.5px;
        font-weight: 600;
        letter-spacing: -0.1px;
        white-space: nowrap;
        color: #9a9aad;
        border: 1px solid transparent;
        text-shadow: none;
        transition: color .25s ease, background .25s ease, border-color .25s ease,
                    transform .25s cubic-bezier(.2, .8, .2, 1);
    }

    /* Köhnə alt xətti söndür */
    .main-nav .nav-link::after { display: none !important; }

    .main-nav .nav-link > i {
        font-size: 12.5px;
        color: var(--hm-violet-l);
        opacity: .72;
        transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), color .25s ease;
    }

    .main-nav .nav-link:hover {
        color: #fff;
        background: rgba(139, 92, 246, 0.11);
        border-color: rgba(139, 92, 246, 0.22);
        transform: translateY(-2px);
        text-shadow: none;
    }

    .main-nav .nav-link:hover > i {
        opacity: 1;
        transform: scale(1.12) rotate(-4deg);
    }

    .main-nav .nav-link.active {
        color: #fff;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.26) 0%, rgba(236, 72, 153, 0.16) 100%);
        border-color: rgba(139, 92, 246, 0.4);
        box-shadow: 0 10px 24px -14px rgba(139, 92, 246, 0.95),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
        text-shadow: none;
    }

    .main-nav .nav-link.active > i {
        opacity: 1;
        color: var(--hm-violet-xl);
    }

    /* Aktiv bəndin altında işıq nöqtəsi */
    .main-nav .nav-link.active::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -7px;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        transform: translateX(-50%);
        background: linear-gradient(90deg, var(--hm-violet), var(--hm-pink));
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.9);
    }

    .main-nav .nav-link:focus-visible {
        outline: 2px solid var(--hm-violet-l);
        outline-offset: 2px;
    }
}

/* Dar ekranlarda ikonları gizlət, mətn qalsın */
@media (min-width: 769px) and (max-width: 1150px) {
    .main-nav .nav-link > i { display: none; }
    .main-nav .nav-link { padding: 9px 10px; font-size: 13px; }
}

/* -----------------------------------------------------------------------------
   HEADER SAĞ BLOK
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
    .header-right { gap: 12px; }
}

/* İş saatları çipi */
.working-hours-premium {
    position: relative;
    gap: 11px;
    padding: 6px 8px 6px 7px;
    background: linear-gradient(135deg, rgba(20, 20, 32, 0.9), rgba(13, 13, 22, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.working-hours-premium:hover {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 12px 26px -16px rgba(139, 92, 246, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}

.wh-icon-wrap {
    width: 30px;
    height: 30px;
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.14));
    border: 1px solid rgba(139, 92, 246, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.wh-icon-wrap i {
    font-size: 12.5px;
    color: var(--hm-violet-xl);
}

.wh-label {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .9px;
    color: #6f6f88;
}

.wh-time {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .6px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.wh-status {
    gap: 5px;
    padding: 4px 9px;
    margin-left: 2px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.wh-status.open {
    background: rgba(34, 197, 94, 0.13);
    border-color: rgba(34, 197, 94, 0.28);
}

.wh-status.closed {
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.28);
}

.wh-dot { width: 6px; height: 6px; }

.wh-status.open .wh-dot {
    background: var(--hm-green);
    box-shadow: 0 0 8px var(--hm-green);
    animation: hmDot 2.2s ease-in-out infinite;
}

@keyframes hmDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .45; transform: scale(.75); }
}

.wh-status-text {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .6px;
}

/* Profil / Giriş düymələri */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 17px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -0.1px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--hm-violet) 0%, #7c3aed 55%, var(--hm-pink) 130%);
    box-shadow: 0 14px 30px -16px rgba(139, 92, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, filter .25s ease;
}

.contact-btn i { font-size: 13px; }

.contact-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 20px 38px -16px rgba(236, 72, 153, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.contact-btn:active { transform: translateY(0) scale(.985); }

/* Profilim düyməsi — "Səbətim" düyməsi ilə eyni görünüş */
.contact-btn.header-profile-btn {
    gap: 8px;
    height: 42px;
    min-width: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #e9e9f2;
    background: rgba(139, 92, 246, 0.10);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: none;
    filter: none;
    transition: all .25s ease;
}

.contact-btn.header-profile-btn i {
    font-size: 15px;
    color: var(--hm-violet-l);
    transition: transform .25s ease;
}

.contact-btn.header-profile-btn:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    filter: none;
    box-shadow: 0 12px 26px -14px rgba(139, 92, 246, 0.9);
}

.contact-btn.header-profile-btn:hover i { transform: scale(1.08); }

.contact-btn.header-profile-btn:active { transform: translateY(0) scale(.985); }

/* Dar ekranda yalnız ikon (səbət düyməsi ilə eyni davranış) */
@media (min-width: 769px) and (max-width: 1200px) {
    .contact-btn.header-profile-btn > span { display: none; }
    .contact-btn.header-profile-btn { padding: 0 12px; }
}

/* ==========================================================================
   GİRİŞ / QEYDİYYAT DÜYMƏLƏRİ (.is-auth)
   Ölçülər (height 42px, padding 0 17px, font-size 13.5px) DƏYİŞMİR —
   yalnız ikon və vizual effektlər əlavə olunur.
   Effektlər yalnız .is-auth ilə məhdudlaşdırılıb ki, "Profilim" və
   "Səbətim" kimi digər .contact-btn düymələrinə təsir etməsin.
   ========================================================================== */
.contact-btn.is-auth {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.contact-btn.is-auth i {
    /* İkon mətnə görə bir az solğun — vizual iyerarxiya */
    opacity: .85;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}

.contact-btn.is-auth:hover i {
    opacity: 1;
}

/* Giriş: ikon "qapıya doğru" irəliləyir */
.contact-btn.outline.is-auth:hover i {
    transform: translateX(2.5px);
}

/* Qeydiyyat: ikon yumşaq şəkildə böyüyür */
.contact-btn.is-auth:not(.outline):hover i {
    transform: scale(1.14);
}

/* Qeydiyyat düyməsində keçən işıq (shine) — hover-də bir dəfə süzülür.
   Yalnız transform animasiya olunur, ona görə kompozitor üzərində işləyir. */
.contact-btn.is-auth:not(.outline)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 55%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: translateX(0) skewX(-18deg);
    transition: transform .75s cubic-bezier(.22, 1, .3, 1);
    pointer-events: none;
}

.contact-btn.is-auth:not(.outline):hover::after {
    transform: translateX(320%) skewX(-18deg);
}

/* Giriş düyməsində incə gradient haşiyə — düz bir xətt yerinə canlı keçid */
.contact-btn.outline.is-auth::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(167, 139, 250, .55), rgba(236, 72, 153, .28) 55%, rgba(167, 139, 250, .12));
    /* Haşiyə effekti: gradient yalnız kənarda görünür */
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s ease;
}

.contact-btn.outline.is-auth:hover::before {
    opacity: 1;
}

.contact-btn.outline {
    color: #ddd6fe;
    background: rgba(139, 92, 246, 0.10);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: none;
}

.contact-btn.outline:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 14px 28px -18px rgba(139, 92, 246, 0.9);
}

/* -----------------------------------------------------------------------------
   AXTARIŞ BÖLMƏSİ — "Oyun axtar"
   -------------------------------------------------------------------------- */
/* Bölmə tam şəffafdır — main.min.css-dəki fon qradienti və kənarlar
   tam en boyu görünən tünd zolaq yaradırdı */
.search-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 22px 0 14px;
}

.search-above-slider {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 18px 0 12px;
}

.search-section::before,
.search-section::after,
.search-above-slider::before,
.search-above-slider::after {
    display: none !important;
}

/* Ambient işıq */
.search-section .container::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: min(720px, 92%);
    height: 130px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.16), transparent 70%);
    filter: blur(26px);
    pointer-events: none;
    z-index: 0;
}

.search-section .search-box {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 680px;
    margin: 0 auto;
    padding: 7px 8px 7px 7px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-bottom: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 22, 34, 0.92) 0%, rgba(14, 14, 24, 0.92) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 46px -26px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color .3s ease, box-shadow .35s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

/* Köhnə alt qradient zolağı söndür */
.search-section .search-box::before { display: none; }

.search-section .search-box:hover {
    border-color: rgba(139, 92, 246, 0.38);
    transform: translateY(-1px);
}

.search-section .search-box:focus-within {
    border-color: rgba(139, 92, 246, 0.62);
    background: linear-gradient(135deg, rgba(26, 26, 40, 0.96) 0%, rgba(16, 16, 28, 0.96) 100%);
    box-shadow: 0 26px 54px -26px rgba(139, 92, 246, 0.75),
                0 0 0 4px rgba(139, 92, 246, 0.13),
                inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

/* İkon plitəsi */
.search-section .search-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 50%;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(140deg, var(--hm-violet-l) 0%, var(--hm-violet) 50%, var(--hm-pink) 130%);
    box-shadow: 0 10px 22px -12px rgba(139, 92, 246, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
}

.search-section .search-box:focus-within .search-icon {
    color: #fff;
    text-shadow: none;
    transform: scale(1.06) rotate(-8deg);
    box-shadow: 0 14px 28px -12px rgba(236, 72, 153, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.search-section .search-box input {
    flex: 1;
    min-width: 0;
    padding: 12px 6px 12px 12px;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
}

.search-section .search-box input::placeholder {
    color: #6f6f88;
    font-style: normal;
    font-weight: 500;
}

/* Təmizlə düyməsi */
.search-section .search-clear {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin: 0 2px 0 0;
    padding: 0;
    /* JS bu düyməni display:block ilə göstərir — mərkəzləmə line-height ilə edilir */
    text-align: center;
    line-height: 28px;
    font-size: 12px;
    color: #8b8ba3;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--hm-line);
    border-radius: 50%;
    transition: all .25s ease;
}

.search-section .search-clear:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.6);
    border-color: rgba(239, 68, 68, 0.5);
    transform: rotate(90deg);
}

/* Klaviatura göstəricisi */
.search-kbd {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    margin-right: 8px;
    padding: 4px 9px;
    border-radius: 8px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 10.5px;
    font-weight: 700;
    color: #7c7c95;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hm-line);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    user-select: none;
}

.search-section .search-box:focus-within .search-kbd {
    opacity: 0;
    transform: translateX(6px);
}

@media (max-width: 640px) {
    .search-kbd { display: none; }
}

/* -----------------------------------------------------------------------------
   TREND AXTARIŞLAR — axtarış sahəsi fokuslandıqda açılan panel
   (nəticələr paneli ilə eyni yerdə görünür)
   -------------------------------------------------------------------------- */
.search-trend-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 680px;
    z-index: 99;
    padding: 14px 15px 15px;
    border-radius: 20px;
    background: rgba(14, 14, 24, 0.97);
    border: 1px solid rgba(139, 92, 246, 0.25);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(255, 255, 255, 0.03);
    animation: hmTrendIn .26s cubic-bezier(.2, .8, .2, 1) both;
}

.search-trend-panel[hidden] { display: none; }

@keyframes hmTrendIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.985); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.trend-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.trend-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #7c7c95;
    white-space: nowrap;
}

.trend-label i {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 10px;
    color: #fff;
    background: linear-gradient(140deg, var(--hm-violet-l), var(--hm-violet) 60%, var(--hm-pink) 140%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.trend-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.trend-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px 7px 11px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.1px;
    color: #b9b9cc;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1);
    animation: hmChipIn .35s cubic-bezier(.2, .8, .2, 1) both;
}

.trend-chip i {
    font-size: 9.5px;
    color: var(--hm-violet-l);
    opacity: .75;
    transition: opacity .22s ease, transform .22s ease;
}

@keyframes hmChipIn {
    from { opacity: 0; transform: translateY(6px) scale(.94); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.trend-chip:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
}

.trend-chip:hover i { opacity: 1; transform: scale(1.1); }

.trend-chip:active { transform: translateY(0) scale(.97); }

.trend-chip:focus-visible {
    outline: 2px solid var(--hm-violet-l);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .search-trend-panel {
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
        transform: none;
        top: calc(100% + 10px);
        padding: 12px 13px 13px;
        border-radius: 18px;
    }

    @keyframes hmTrendIn {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .trend-head { padding-bottom: 9px; margin-bottom: 10px; }
    .trend-label { font-size: 9.5px; letter-spacing: .9px; }
    .trend-label i { width: 20px; height: 20px; font-size: 9px; border-radius: 6px; }
    .trend-chips { gap: 6px; }
    .trend-chip { padding: 6px 12px 6px 9px; font-size: 11.5px; gap: 6px; }
    .trend-chip i { font-size: 9px; }
}

@media (max-width: 480px) {
    .search-trend-panel { left: 12px; right: 12px; }
    .trend-chip { padding: 5px 11px 5px 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .search-trend-panel, .trend-chip { animation: none !important; transition: none !important; }
}

/* -----------------------------------------------------------------------------
   MOBİL HEADER — loqo mətni, simmetrik ikon düymələri
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .logo-text {
        display: inline-block !important;
        font-size: 0.98rem !important;
        letter-spacing: .2px;
        max-width: none !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* Sağ düymə qrupu absolute olduğu üçün loqoya yer ayırılır */
    .logo-link {
        padding-right: 96px !important;
        overflow: visible !important;
    }

    /* Sağ üstdəki hamburger menyu silindi — naviqasiya alt paneldədir */
    .mobile-menu-toggle { display: none !important; }

    /* Səbət və profil düymələri tam eyni ölçüdə */
    .header-right-mobile { gap: 7px !important; }

    /* Yalnız ikonlu düymələr kvadrat olur (profil ikonu + səbət) */
    .header-right-mobile .header-cart-mobile,
    .header-right-mobile .m-auth-btn.m-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        line-height: 1 !important;
    }

    .header-right-mobile .header-cart-mobile i,
    .header-right-mobile .m-auth-btn.m-icon i {
        font-size: 14px !important;
        color: var(--hm-violet-l) !important;
    }

    /* Səbət düyməsi profil ilə eyni tonda olsun */
    .header-right-mobile .header-cart-mobile,
    .header-right-mobile .m-auth-btn.m-icon {
        background: rgba(139, 92, 246, 0.13) !important;
        border: 1px solid rgba(139, 92, 246, 0.28) !important;
    }

    /* Mətnli düymələr (Giriş / Qeydiyyat) öz enində qalır */
    .header-right-mobile .m-auth-btn:not(.m-icon) {
        height: 36px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        font-size: 11.5px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* Badge də kiçilir */
    .header-cart-mobile .tc-badge {
        top: -5px;
        right: -5px;
        min-width: 17px;
        height: 17px;
        font-size: 9.5px;
        border-width: 2px;
    }

    .mobile-menu-toggle {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 420px) {
    .logo-text { font-size: 0.88rem !important; max-width: none !important; }

    .logo-link { padding-right: 88px !important; }

    .header-right-mobile .header-cart-mobile,
    .header-right-mobile .m-auth-btn.m-icon {
        width: 33px !important;
        height: 33px !important;
        min-width: 33px !important;
        border-radius: 9px !important;
    }

    .header-right-mobile .m-auth-btn:not(.m-icon) {
        height: 33px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    .header-right-mobile .header-cart-mobile i,
    .header-right-mobile .m-auth-btn.m-icon i { font-size: 13px !important; }

    .mobile-menu-toggle { width: 33px !important; height: 33px !important; }
}

@media (max-width: 360px) {
    .logo-text { font-size: 0.78rem !important; max-width: none !important; }

    .logo-link { padding-right: 76px !important; }

    .header-right-mobile { gap: 5px !important; }

    .header-right-mobile .header-cart-mobile,
    .header-right-mobile .m-auth-btn.m-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        border-radius: 8px !important;
    }

    .header-right-mobile .m-auth-btn:not(.m-icon) {
        height: 30px !important;
        padding: 0 9px !important;
        font-size: 10.5px !important;
    }

    .header-right-mobile .header-cart-mobile i,
    .header-right-mobile .m-auth-btn.m-icon i { font-size: 12px !important; }

    .mobile-menu-toggle { width: 30px !important; height: 30px !important; }
}

/* -----------------------------------------------------------------------------
   AXTARIŞ SAHƏSİ — mobil kompakt ölçülər
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .search-section,
    .search-above-slider { padding: 10px 0 12px !important; }

    .search-section .search-box {
        gap: 2px;
        padding: 5px 6px 5px 5px;
        margin: 0 12px;
        border-radius: 999px;
    }

    .search-section .search-icon {
        width: 30px;
        height: 30px;
        font-size: 11.5px;
        margin: 0 !important;
    }

    /* iOS Safari font-size-ı 16px-dən KİÇİK olan input-a fokus düşəndə
       səhifəni avtomatik ZOOM edir (əvvəl burada 12.5px idi — məhz ona görə
       axtarış qutusuna basanda ekran böyüyürdü).

       Həll: input-un öz font-size-ı 16px saxlanılır, kompakt görünüş isə
       ::placeholder üzərindən verilir — zoom qərarı YALNIZ input-un
       font-size-ına baxır, placeholder ölçüsü ona təsir etmir.

       Qeyd: `user-scalable=no` / `maximum-scale=1` YAZILMADI, çünki o,
       zoom-u dayandırsa da istifadəçinin barmaqla böyütmə imkanını
       tamamilə əlindən alır (əlçatanlıq pozuntusu).

       padding 9px → 7px: 16px şrift sətri daha hündür olduğu üçün qutunun
       ümumi hündürlüyü əvvəlki kimi (~33px) qalsın. */
    .search-section .search-box input {
        padding: 7px 4px 7px 9px !important;
        font-size: 16px !important;
        line-height: 1.2;
    }

    .search-section .search-box input::placeholder {
        font-size: 12.5px;
    }

    .search-section .search-clear {
        width: 25px;
        height: 25px;
        line-height: 23px;
        font-size: 10.5px;
        padding: 0 !important;
        margin: 0 1px 0 0;
    }

    .search-section .container::before { display: none; }
}

@media (max-width: 420px) {
    .search-section .search-box {
        margin: 0 10px;
        padding: 4px 5px 4px 4px;
    }

    .search-section .search-icon { width: 27px; height: 27px; font-size: 10.5px; }

    /* 16px saxlanılır (iOS zoom qarşısı), görünən ölçü placeholder ilə */
    .search-section .search-box input {
        padding: 6px 3px 6px 8px !important;
        font-size: 16px !important;
        line-height: 1.2;
    }

    .search-section .search-box input::placeholder {
        font-size: 12px;
    }

    .search-section .search-clear { width: 23px; height: 23px; line-height: 21px; }
}

/* Nəticələr açılan paneli */
.search-section .search-results {
    max-width: 680px;
    margin-top: 12px;
    padding: 6px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    background: rgba(14, 14, 24, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(255, 255, 255, 0.03);
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
}

.search-section .search-results::-webkit-scrollbar { width: 6px; }
.search-section .search-results::-webkit-scrollbar-track { background: transparent; }

.search-section .search-results::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.45);
    border-radius: 999px;
}

.search-section .search-results.active {
    animation: hmDropIn .28s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes hmDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.985); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Nəticə sətri */
.search-section .search-result-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 44px 10px 11px;
    border-bottom: none;
    border-radius: 15px;
    border: 1px solid transparent;
    transition: background .22s ease, border-color .22s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}

.search-section .search-result-item + .search-result-item { margin-top: 2px; }

.search-section .search-result-item:hover {
    background: linear-gradient(100deg, rgba(139, 92, 246, 0.17) 0%, rgba(236, 72, 153, 0.06) 100%);
    border-color: rgba(139, 92, 246, 0.28);
    transform: translateX(3px);
}

/* Hover-də sağda görünən oxu */
.search-section .search-result-item::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    font-size: 11px;
    color: var(--hm-violet-l);
    opacity: 0;
    transition: opacity .22s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
    pointer-events: none;
}

.search-section .search-result-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Şəkil */
.search-section .search-result-image {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 13px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.95);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), border-color .22s ease;
}

.search-section .search-result-item:hover .search-result-image {
    transform: scale(1.06) rotate(-2deg);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Mətn bloku */
.search-section .search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.search-section .search-result-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.15px;
    color: #f4f4f8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Uyğun hissənin işıqlandırılması (JS inline stilini əvəz edir) */
.search-section .search-result-title mark {
    padding: 1px 5px !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(236, 72, 153, 0.7)) !important;
    box-shadow: 0 4px 12px -6px rgba(139, 92, 246, 0.9) !important;
}

/* Kateqoriya çipi */
.search-section .search-result-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #9b9bb4;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hm-line);
    transition: color .22s ease, background .22s ease, border-color .22s ease;
}

.search-section .search-result-category::before {
    content: '';
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--hm-violet-l);
    opacity: .8;
}

.search-section .search-result-item:hover .search-result-category {
    color: #ddd6fe;
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Qiymət çipi */
.search-section .search-result-price {
    flex-shrink: 0;
    padding: 7px 13px;
    border-radius: 999px;
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.22);
    transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.search-section .search-result-item:hover .search-result-price {
    color: #fff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(5, 150, 105, 0.85));
    border-color: transparent;
    box-shadow: 0 10px 22px -12px rgba(16, 185, 129, 0.95);
}

/* Nəticə tapılmadı */
.search-section .search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 38px 24px 34px;
}

.search-section .search-no-results i {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 20px;
    font-size: 22px;
    color: var(--hm-violet-l);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.16), rgba(236, 72, 153, 0.07));
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-section .search-no-results p {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.6;
    color: #b3b3c7;
    max-width: 320px;
}

/* Mobildə panel mərkəzlənmir — left/right ilə yerləşir, ona görə
   translateX(-50%) olmayan ayrı animasiya işlədilir */
@keyframes hmDropInFlat {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .search-section .search-results {
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
        transform: none;
        margin-top: 10px;
        max-height: 340px;
        border-radius: 18px;
    }

    .search-section .search-results.active {
        animation-name: hmDropInFlat;
    }
}

/* Nəticələr — kiçik ekran detalları */
@media (max-width: 640px) {
    .search-section .search-results {
        left: 12px;
        right: 12px;
    }

    .search-section .search-result-item {
        gap: 11px;
        padding: 9px 12px 9px 9px;
        border-radius: 13px;
    }

    /* Mobildə ox əvəzinə qiymət sağda qalsın */
    .search-section .search-result-item::after { display: none; }

    .search-section .search-result-image { width: 42px; height: 42px; border-radius: 11px; }
    .search-section .search-result-title { font-size: 13px; }
    .search-section .search-result-price { padding: 6px 10px; font-size: 12px; }
    .search-section .search-result-category { font-size: 9.5px; padding: 2px 8px 2px 6px; }
}

/* Hərəkət azaldılması */
@media (prefers-reduced-motion: reduce) {
    .site-header, .logo-link img, .main-nav .nav-link, .main-nav .nav-link > i,
    .contact-btn, .working-hours-premium, .wh-status.open .wh-dot,
    .search-section .search-box, .search-section .search-icon,
    .search-section .search-clear, .search-section .search-result-item,
    .search-section .search-results.active, .search-section .search-result-image,
    .search-section .search-result-price, .search-section .search-result-category {
        transition: none !important;
        animation: none !important;
    }
}

/* -----------------------------------------------------------------------------
   iOS ZOOM QORUNMASI — toxunma cihazlarının HAMISI üçün

   PROBLEM: iOS Safari font-size-ı 16px-dən kiçik olan `input`-a fokus düşəndə
   səhifəni avtomatik böyüdür. Yuxarıdaki `max-width: 768px` və `420px`
   blokları bunu düzəldir, LAKİN onlar yalnız ENƏ görə işləyir:
     • iPhone LANDŞAFT rejimində en 768px-i keçir → baza qayda (14.5px) qalib
       gəlir və zoom yenidən baş verir
     • iPad-də (768px+) də eyni vəziyyət

   HƏLL: en yerinə CİHAZ NÖVÜNƏ görə şərt. `hover: none` + `pointer: coarse`
   yalnız toxunma ekranlarında doğrudur — masaüstü siçan istifadəçiləri
   dizaynda nəzərdə tutulan 14.5px ölçüdə qalır.

   Bu blok faylın sonundadır ki, baza qaydadan sonra gəlsin (eyni xüsusiyyət
   çəkisində sonrakı qayda qalib gəlir).
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    .search-section .search-box input,
    .search-above-slider .search-box input,
    .search-box input,
    .mobile-search-input-wrapper input,
    #product-search,
    #mobile-search-input {
        font-size: 16px !important;
    }

    /* Kompakt görünüş placeholder üzərindən saxlanılır — placeholder
       ölçüsü brauzerin zoom qərarına TƏSİR ETMİR */
    .search-section .search-box input::placeholder,
    .search-above-slider .search-box input::placeholder {
        font-size: 13.5px;
    }

    /* --- QLOBAL: sayt boyu BÜTÜN mətn sahələri ---
       Giriş, qeydiyyat, şifrə bərpası, promokod, rəy formaları, balans
       yükləmə, oyun ID sahələri və s. — hamısı 16px-dən kiçik olduqda
       iOS zoom edirdi. Hər faylı ayrı düzəltmək yerinə bir qayda:

       • Yalnız MƏTN DAXİL EDİLƏN növlər seçilir. checkbox/radio/range/file
         və düymələr xaric edilir, çünki onlarda font-size ölçünü dəyişir
         və dizaynı pozar.
       • `select` də daxildir — iOS onda da zoom edir.
       • Bu fayl yalnız SAYT header-i (includes/header.php) ilə yüklənir,
         admin panelə TƏSİR ETMİR. */
    input:not([type]),
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="url"],
    input[type="date"],
    input[type="datetime-local"],
    textarea,
    select {
        font-size: 16px !important;
    }
}
