/* =========================================================
   HEADER — RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
    .search_results {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .search_item .product-image { height: 180px; }
}

@media (max-width: 768px) {

    /* ---------- Top bar ---------- */
    .header_hold { padding: 16px; }
    .header_logo img { width: 50px; }
    .header_logo p   { font-size: 17px; }

    .header_search    { display: none; }
    .header-nav-pills { display: none; }
    .header_right     { gap: 0; }
    .hamburger        { display: flex; }

    /* ---------- Action icons ---------- */
    /* Favorites + notifications stay in the top bar; the rest move into the sheet */
    .header-actions .action-hide-mobile { display: none; }

    .header-actions .icon-btn {
        width: 38px;
        height: 38px;
    }
    .header-actions .icon-btn i { font-size: 16px; }

    /* ---------- Seller "+" (its actions live in the sheet) ---------- */
    .seller-add-dropdown { display: none; }

    /* ---------- Avatar button (icon only) ---------- */
    .user-btn-name,
    .user-btn-chevron { display: none; }

    .user-btn-logged {
        padding: 3px;
        height: 42px;
        border-color: transparent;
    }
    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    /* ---------- Profile dropdown → full-screen bottom sheet ---------- */
    .user-dropdown { position: static; }

    .dropdown-menu {
        position: fixed;
        inset: 0;
        width: 100%;
        min-width: 0;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 0;
        transform: translateY(100%);
        opacity: 1;
        visibility: hidden;
        transition: transform .3s ease, visibility 0s linear .3s;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        z-index: 10000;
    }
    .dropdown-menu.active {
        transform: translateY(0);
        visibility: visible;
        transition: transform .3s ease, visibility 0s linear 0s;
    }

    .dropdown-sheet-header {
        display: flex;
        padding: 14px 18px;
        background: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .dropdown-user {
        margin: 12px 16px 0;
        padding: 16px;
        border-radius: 16px;
    }
    .dropdown-user-avatar { width: 52px; height: 52px; font-size: 20px; }
    .dropdown-user-info strong { font-size: 15px; }
    .dropdown-user-info small  { font-size: 12.5px; }

    .dropdown-item {
        margin: 0 8px;
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 12px;
    }
    .dropdown-item i { font-size: 16px; width: 22px; }

    /* Push logout to the bottom */
    .dropdown-menu .dropdown-item.logout-link {
        margin: auto 8px 20px;
    }

    /* ---------- Mobile-only tools inside the sheet ---------- */
    .dropdown-mobile-tools {
        display: block;
        padding: 16px 16px 4px;
    }

    .dropdown-search-mobile {
        display: flex;
        width: 100%;
        margin-bottom: 14px;
    }
    .dropdown-search-mobile input {
        flex: 1;
        min-width: 0;
        height: 46px;
        padding: 0 16px;
        border: 1px solid #e5e7eb;
        border-right: none;
        background: #f8fafc;
        color: #0f172a;
        font-size: 14px;
        border-radius: 12px 0 0 12px;
        transition: border-color .2s, background .2s, box-shadow .2s;
    }
    .dropdown-search-mobile input::placeholder { color: #94a3b8; }
    .dropdown-search-mobile input:focus {
        outline: none;
        background: #fff;
        border-color: #ff7a00;
        box-shadow: 0 0 0 3px rgba(255, 122, 0, .12);
    }
    .dropdown-search-mobile button {
        width: 52px;
        height: 46px;
        flex-shrink: 0;
        border: none;
        background: #ff7a00;
        color: #fff;
        border-radius: 0 12px 12px 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .18s;
    }
    .dropdown-search-mobile button:hover { background: #ea6e00; }
    .dropdown-search-mobile button i { font-size: 16px; }

    .dropdown-nav-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 6px;
    }
    .dropdown-nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 46px;
        padding: 0 12px;
        border-radius: 12px;
        background: #f8fafc;
        color: #0f172a;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: background .18s, color .18s;
    }
    .dropdown-nav-link i { font-size: 15px; color: #64748b; transition: color .18s; }
    .dropdown-nav-link:active { transform: scale(.98); }
    .dropdown-nav-link.active { background: #0f172a; color: #fff; }
    .dropdown-nav-link.active i { color: #fff; }
    .dropdown-nav-link:hover { color: #ff7a00; }
    .dropdown-nav-link:hover i { color: #ff7a00; }

    /* ---------- Sheet action grid ---------- */
    .dropdown-actions-mobile {
        display: flex;
        gap: 8px;
        padding: 16px;
    }
    .dropdown-action {
        position: relative;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px 4px;
        border-radius: 14px;
        background: #f8fafc;
        color: #0f172a;
        font-size: 11px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        transition: background .18s, transform .15s;
    }
    .dropdown-action i { font-size: 18px; color: #ff7a00; }
    .dropdown-action span { line-height: 1.2; }
    .dropdown-action:active { transform: scale(.96); }

    /* ---------- Seller links inside the sheet ---------- */
    .dropdown-seller-mobile {
        display: block;
        padding: 6px 0;
        border-top: 1px solid #eef2f6;
        margin-top: 6px;
    }
    .dropdown-seller-mobile .dropdown-item {
        margin: 0 8px;
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 12px;
    }

    /* ---------- Guest buttons ---------- */
    .become-seller-btn { display: none; }

    .login-btn,
    .signup-btn {
        padding: 0 14px;
        font-size: 13px;
        height: 38px;
    }

    /* ---------- Drawer panels → bottom sheets ---------- */
    .panel-drawer {
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        border-left: none;
        border-radius: 0;
        transform: translateY(100%);
    }
    .panel-drawer.active { transform: translateY(0); }

    .panel-drawer-header {
        padding: 14px 18px;
        background: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 480px) {
    .header-actions .icon-btn {
        width: 36px;
        height: 36px;
    }
    .header-actions .icon-btn i { font-size: 15px; }

    .user-avatar { width: 30px; height: 30px; font-size: 12px; }

    .login-btn { display: none; }   /* keep only "Üye ol" on tiny screens */
    .signup-btn { padding: 0 16px; }
}